|
|
using Common.Enum;
|
|
|
using Entity.Base;
|
|
|
using SqlSugar;
|
|
|
|
|
|
namespace Entity.DbModel.System.SysBaseObject
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 系统菜单表
|
|
|
/// </summary>
|
|
|
[SugarTable("sys_menu")]
|
|
|
public partial class SysMenu : EntityBase
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 父Id
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "pid")]
|
|
|
public long Pid { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 菜单类型(1目录 2菜单 3按钮)
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "type")]
|
|
|
public MenuTypeEnum Type { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 路由名称
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "name")]
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 路由地址
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "path")]
|
|
|
public string? Path { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 组件路径
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "component")]
|
|
|
public string? Component { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 重定向
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "redirect")]
|
|
|
public string? Redirect { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 权限标识
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "permission")]
|
|
|
public string? Permission { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 菜单名称
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "title")]
|
|
|
public virtual string Title { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 图标
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "icon")]
|
|
|
public string? Icon { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否内嵌
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "is_iframe")]
|
|
|
public bool IsIframe { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 外链链接
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "out_link")]
|
|
|
public string? OutLink { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否隐藏
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "is_hide")]
|
|
|
public bool IsHide { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否缓存
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "is_keep_alive")]
|
|
|
public bool IsKeepAlive { get; set; } = true;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否固定
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "is_affix")]
|
|
|
public bool IsAffix { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 排序
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "order_no")]
|
|
|
public int OrderNo { get; set; } = 100;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 状态
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "status")]
|
|
|
public StatusEnum Status { get; set; } = StatusEnum.Enable;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备注
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "remark")]
|
|
|
public string? Remark { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 菜单子项
|
|
|
/// </summary>
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
|
public List<SysMenu> Children { get; set; } = new List<SysMenu>();
|
|
|
}
|
|
|
} |