using DS.Module.Core.Data; using SqlSugar; namespace DS.WMS.Core.System.Entity; /// /// 权限信息 /// [SqlSugar.SugarTable("sys_permission")] public class SysPermission : BaseTenantModel { /// ///上级权限ID /// public long ParentId { get; set; } /// /// 权限名称 /// public string PermissionName { get; set; } /// ///权限唯一码 /// public string PermissionCode { get; set; } /// /// 菜单名称 /// public string Title { get; set; } /// /// 权限图标 /// [SqlSugar.SugarColumn(IsNullable = true)] public string Icon { 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; } #endregion 拓展字段 /// ///权限实体 /// public string PermissionEntity { get; set; } }