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

70 lines
1.2 KiB

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