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

RoleOutput.cs 1.2 KiB

4 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 角色拥有的资源输出
  6. /// </summary>
  7. public class RoleOwnResourceOutput
  8. {
  9. /// <summary>
  10. /// Id
  11. /// </summary>
  12. public virtual long Id { get; set; }
  13. /// <summary>
  14. /// 已授权资源信息
  15. /// </summary>
  16. public virtual List<RelationRoleResource> GrantInfoList { get; set; }
  17. }
  18. /// <summary>
  19. /// 角色拥有权限输出
  20. /// </summary>
  21. public class RoleOwnPermissionOutput
  22. {
  23. /// <summary>
  24. /// 角色Id
  25. /// </summary>
  26. public virtual long Id { get; set; }
  27. /// <summary>
  28. /// 已授权资源信息
  29. /// </summary>
  30. public virtual List<RelationRolePermission> GrantInfoList { get; set; }
  31. }
  32. /// <summary>
  33. /// 角色树输出参数
  34. /// </summary>
  35. public class RoleTreeOutput
  36. {
  37. /// <summary>
  38. /// 职位Id
  39. /// </summary>
  40. public long Id { get; set; }
  41. /// <summary>
  42. /// 名称
  43. /// </summary>
  44. public string Name { get; set; }
  45. /// <summary>
  46. /// 是否是职位
  47. /// </summary>
  48. public bool IsRole { get; set; }
  49. /// <summary>
  50. /// 子项
  51. /// </summary>
  52. public List<RoleTreeOutput> Children { get; set; } = new List<RoleTreeOutput>();
  53. }