平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

111 lines
2.1 KiB

  1. //
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 角色授权资源树输出
  5. /// </summary>
  6. public class ResTreeSelector
  7. {
  8. /// <summary>
  9. /// 模块id
  10. /// </summary>
  11. public long Id { get; set; }
  12. /// <summary>
  13. /// 模块名称
  14. /// </summary>
  15. public string Title { get; set; }
  16. /// <summary>
  17. /// 模块图标
  18. /// </summary>
  19. public string Icon { get; set; }
  20. /// <summary>
  21. /// 模块下菜单集合
  22. /// </summary>
  23. public List<RoleGrantResourceMenu> Menu { get; set; }
  24. /// <summary>
  25. /// 授权菜单类
  26. /// </summary>
  27. public class RoleGrantResourceMenu
  28. {
  29. /// <summary>
  30. /// 菜单id
  31. /// </summary>
  32. public long Id { get; set; }
  33. /// <summary>
  34. /// 父id
  35. /// </summary>
  36. public long ParentId { get; set; }
  37. /// <summary>
  38. /// 父名称
  39. /// </summary>
  40. public string ParentName { get; set; }
  41. /// <summary>
  42. /// 模块名称
  43. /// </summary>
  44. public string Title { get; set; }
  45. /// <summary>
  46. /// 模块id
  47. /// </summary>
  48. public long Module { get; set; }
  49. /// <summary>
  50. /// 菜单下按钮集合
  51. /// </summary>
  52. public List<RoleGrantResourceButton> Button { get; set; } = new List<RoleGrantResourceButton>();
  53. }
  54. /// <summary>
  55. /// 角色授权资源按钮信息
  56. /// </summary>
  57. public class RoleGrantResourceButton
  58. {
  59. /// <summary>
  60. /// 按钮id
  61. /// </summary>
  62. public long Id { get; set; }
  63. /// <summary>
  64. /// 标题
  65. /// </summary>
  66. public string Title { get; set; }
  67. }
  68. }
  69. /// <summary>
  70. /// 权限树选择器输出
  71. /// </summary>
  72. public class PermissionTreeSelector
  73. {
  74. /// <summary>
  75. /// 接口描述
  76. /// </summary>
  77. public string ApiName { get; set; }
  78. /// <summary>
  79. /// 路由名称
  80. /// </summary>
  81. public string ApiRoute { get; set; }
  82. /// <summary>
  83. /// 权限名称
  84. /// </summary>
  85. public string PermissionName { get; set; }
  86. }