|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
-
- //
-
-
-
-
-
-
-
-
- namespace SafeCampus.System;
-
- /// <summary>
- /// 角色授权资源树输出
- /// </summary>
- public class ResTreeSelector
- {
- /// <summary>
- /// 模块id
- /// </summary>
- public long Id { get; set; }
-
- /// <summary>
- /// 模块名称
- /// </summary>
- public string Title { get; set; }
-
- /// <summary>
- /// 模块图标
- /// </summary>
- public string Icon { get; set; }
-
- /// <summary>
- /// 模块下菜单集合
- /// </summary>
- public List<RoleGrantResourceMenu> Menu { get; set; }
-
- /// <summary>
- /// 授权菜单类
- /// </summary>
- public class RoleGrantResourceMenu
- {
- /// <summary>
- /// 菜单id
- /// </summary>
- public long Id { get; set; }
-
- /// <summary>
- /// 父id
- /// </summary>
- public long ParentId { get; set; }
-
- /// <summary>
- /// 父名称
- /// </summary>
- public string ParentName { get; set; }
-
- /// <summary>
- /// 模块名称
- /// </summary>
- public string Title { get; set; }
-
- /// <summary>
- /// 模块id
- /// </summary>
- public long Module { get; set; }
-
- /// <summary>
- /// 菜单下按钮集合
- /// </summary>
- public List<RoleGrantResourceButton> Button { get; set; } = new List<RoleGrantResourceButton>();
- }
-
- /// <summary>
- /// 角色授权资源按钮信息
- /// </summary>
- public class RoleGrantResourceButton
- {
- /// <summary>
- /// 按钮id
- /// </summary>
- public long Id { get; set; }
-
- /// <summary>
- /// 标题
- /// </summary>
- public string Title { get; set; }
- }
- }
-
- /// <summary>
- /// 权限树选择器输出
- /// </summary>
- public class PermissionTreeSelector
- {
- /// <summary>
- /// 接口描述
- /// </summary>
- public string ApiName { get; set; }
-
- /// <summary>
- /// 路由名称
- /// </summary>
- public string ApiRoute { get; set; }
-
- /// <summary>
- /// 权限名称
- /// </summary>
- public string PermissionName { get; set; }
- }
|