using SqlSugar; namespace Ds.Modules.DsEntity.Auth { /// /// 菜单表 /// public class Ds_Sys_Menus : BaseEntityTenant { /// ///上级权限ID /// public long ParentId { get; set; } /// /// 权限名称 /// public string MenuName { get; set; } /// ///权限唯一码 /// public string MenuCode { get; set; } /// /// 路径名称 /// public string MenuUrl { get; set; } /// /// 权限图标 /// [SqlSugar.SugarColumn(IsNullable = true)] public string MenuIcon { get; set; } /// /// 路径 /// [SqlSugar.SugarColumn(IsNullable = true)] public string Url { get; set; } /// /// 跳转 /// [SqlSugar.SugarColumn(IsNullable = true)] public string Redirect { get; set; } /// /// 组件 /// [SqlSugar.SugarColumn(IsNullable = true)] public string Component { get; set; } /// /// 组件 /// public string ComponentName { get; set; } /// /// 权限类型 /// 1:一级菜单; 2:子菜单:3:按钮权限 /// public int MenuType { get; set; } /// ///0: 公共; 1:客户端; 2:市平台:3:省平台 /// public int PermissionType { get; set; } /// /// 外链菜单打开方式 0/内部打开 1/外部打开 /// public int OpenType { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 是否公众权限 /// public bool IsPublic { get; set; } = false; /// /// 是否缓存该页面 /// public bool KeepAlive { get; set; } = true; /// /// 是否隐藏路由 /// public bool IsHidden { get; set; } = false; /// /// 是否隐藏tab /// public bool IsHideTab { get; set; } = false; /// /// 聚合子路由 /// public bool IsAlwaysShow { get; set; } = false; /// /// 是否路由菜单 /// public bool IsRoute { get; set; } = true; #region 拓展字段 [SugarColumn(IsIgnore = true)] public virtual List children { get; set; } // [SugarColumn(IsIgnore = true)] // public virtual SysPermission Parent { get; set; } // // [SugarColumn(IsIgnore = true)] // public virtual string ParentName // { // get // { // var parentName = Parent == null ? "" : Parent.PermissionName; // return parentName; // } // } #endregion 拓展字段 /// ///权限实体 /// public string PermissionEntity { get; set; } } }