|
|
|
|
using DS.Module.Core.Data;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.System.Entity;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 权限信息-租户
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SqlSugar.SugarTable("sys_permission_tenant")]
|
|
|
|
|
public class SysPermissionTenant : BaseTenantModel<long>
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///权限ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long PermissionId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
///上级权限ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long ParentId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 权限名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PermissionName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///权限唯一码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PermissionCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 菜单名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 权限图标
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SqlSugar.SugarColumn(IsNullable = true)]
|
|
|
|
|
public string Icon { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 路径
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SqlSugar.SugarColumn(IsNullable = true)]
|
|
|
|
|
public string Url { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 跳转
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SqlSugar.SugarColumn(IsNullable = true)]
|
|
|
|
|
public string Redirect { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 组件
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SqlSugar.SugarColumn(IsNullable = true)]
|
|
|
|
|
public string Component { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 组件
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ComponentName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 权限类型
|
|
|
|
|
/// 1:一级菜单; 2:子菜单:3:按钮权限
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int MenuType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///0: 公共; 1:客户端; 2:市平台:3:省平台
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int PermissionType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 外链菜单打开方式 0/内部打开 1/外部打开
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int OpenType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int SortCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否公众权限
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsPublic { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否缓存该页面
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool KeepAlive { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否隐藏路由
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsHidden { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否隐藏tab
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsHideTab { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 聚合子路由
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsAlwaysShow { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否路由菜单
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsRoute { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 拓展字段
|
|
|
|
|
|
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
|
|
|
public virtual List<SysPermission> children { get; set; }
|
|
|
|
|
|
|
|
|
|
#endregion 拓展字段
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///权限实体
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PermissionEntity { get; set; }
|
|
|
|
|
}
|