平安校园
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.

ResourceOutPut.cs 2.1 KiB

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