using Vo; namespace Model { /// /// 菜单权限表 sys_menu /// [SugarTable("sys_menu", "菜单权限表")] [Tenant("0")] public class SysMenu { /// /// 菜单ID /// [SugarColumn(ColumnDescription = "菜单ID", IsPrimaryKey = true, IsIdentity = true, ColumnName = "menu_id")] public long menuId { get; set; } /// /// 菜单名称 /// [SugarColumn(ColumnDescription = "菜单名称", Length = 32, ColumnName = "name")] public string? name { get; set; } /// /// 英文名称 /// [SugarColumn(ColumnDescription = "英文名称", Length = 128, ColumnName = "en_name")] public string? enName { get; set; } /// /// 权限标识 /// [SugarColumn(ColumnDescription = "权限标识", Length = 32, ColumnName = "permission")] public string? permission { get; set; } /// /// 路由路径 /// [SugarColumn(ColumnDescription = "路由路径", Length = 128, ColumnName = "path")] public string? path { get; set; } /// /// 父菜单ID /// [SugarColumn(ColumnDescription = "父菜单ID", ColumnName = "parent_id")] public long parentId { get; set; } /// /// 菜单图标 /// [SugarColumn(ColumnDescription = "菜单图标", Length = 64, ColumnName = "icon")] public string? icon { get; set; } /// /// 是否可见,0隐藏,1显示 /// [SugarColumn(ColumnDescription = "是否可见,0隐藏,1显示", Length = 1, ColumnName = "visible")] public string? visible { get; set; } /// /// 排序值,越小越靠前 /// [SugarColumn(ColumnDescription = "排序值,越小越靠前", ColumnName = "sort_order")] public int sortOrder { get; set; } /// /// 是否缓存,0否,1是 /// [SugarColumn(ColumnDescription = "是否缓存,0否,1是", Length = 1, ColumnName = "keep_alive")] public string? keepAlive { get; set; } /// /// 是否内嵌,0否,1是 /// [SugarColumn(ColumnDescription = "是否内嵌,0否,1是", Length = 1, ColumnName = "embedded")] public string? embedded { get; set; } /// /// 菜单类型,0目录,1菜单,2按钮 /// [SugarColumn(ColumnDescription = "菜单类型,0目录,1菜单,2按钮", Length = 1, ColumnName = "menu_type")] public string? menuType { get; set; } /// /// 创建人 /// [SugarColumn(ColumnDescription = "创建人", Length = 64, ColumnName = "create_by")] public string? CreateBy { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_time")] public DateTime? CreateTime { get; set; } /// /// 修改人 /// [SugarColumn(ColumnDescription = "修改人", Length = 64, ColumnName = "update_by")] public string? UpdateBy { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnDescription = "更新时间", ColumnName = "update_time")] public DateTime? UpdateTime { get; set; } /// /// 删除标志,0未删除,1已删除 /// [SugarColumn(ColumnDescription = "删除标志,0未删除,1已删除", Length = 1, ColumnName = "del_flag")] public string? DelFlag { get; set; } [SugarColumn(IsIgnore = true)] public TreeSelectMeta meta { get; set; } [SugarColumn(IsIgnore = true)] public long id { get; set; } /// /// 子菜单 /// [SugarColumn(IsIgnore = true)] public List children { get; set; } = new List(); /// /// 子菜单个数 /// [SugarColumn(IsIgnore = true)] public int subNum { get; set; } /// /// 是否包含子节点,前端用 /// [SugarColumn(IsIgnore = true)] public bool hasChildren { get { return subNum > 0 || children.Count > 0; } } } }