RoleDataScope.cs 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.Collections.Generic;
  2. namespace YBEE.EQM.Core;
  3. /// <summary>
  4. /// 角色数据权限范围
  5. /// </summary>
  6. public class RoleDataScope
  7. {
  8. /// <summary>
  9. /// 可访问学段列表
  10. /// </summary>
  11. public List<EducationStage> EducationStages { get; set; } = new();
  12. /// <summary>
  13. /// 可访问机构ID列表
  14. /// </summary>
  15. public List<short> SysOrgIds { get; set; } = new();
  16. /// <summary>
  17. /// 双向细目表编制科目列表
  18. /// </summary>
  19. public List<TwoWayTable> TwoWayTables { get; set; } = new();
  20. /// <summary>
  21. /// 双向细目表
  22. /// </summary>
  23. public class TwoWayTable
  24. {
  25. /// <summary>
  26. /// 监测计划ID
  27. /// </summary>
  28. public int ExamPlanId { get; set; }
  29. /// <summary>
  30. /// 年级ID
  31. /// </summary>
  32. public short GradeId { get; set; }
  33. /// <summary>
  34. /// 科目ID
  35. /// </summary>
  36. public short CourseId { get; set; }
  37. }
  38. }