UserPermission.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Collections.Generic;
  2. namespace YBEE.EQM.Core;
  3. /// <summary>
  4. /// 用户权限
  5. /// </summary>
  6. public class UserPermission
  7. {
  8. /// <summary>
  9. /// 数据权限
  10. /// </summary>
  11. public DataScope Data { get; set; }
  12. /// <summary>
  13. /// 数据权限范围
  14. /// </summary>
  15. public class DataScope
  16. {
  17. /// <summary>
  18. /// 双向细目表
  19. /// </summary>
  20. public List<ExamPaperScope> TwoWayCheckLists { get; set; } = new();
  21. /// <summary>
  22. /// 问题建议
  23. /// </summary>
  24. public List<ExamPaperScope> QuestionSuggestions { get; set; } = new();
  25. /// <summary>
  26. /// 试卷范围
  27. /// </summary>
  28. public class ExamPaperScope
  29. {
  30. /// <summary>
  31. /// 监测计划ID
  32. /// </summary>
  33. public int ExamPlanId { get; set; }
  34. /// <summary>
  35. /// 年级ID
  36. /// </summary>
  37. public short GradeId { get; set; }
  38. /// <summary>
  39. /// 科目ID
  40. /// </summary>
  41. public short CourseId { get; set; }
  42. }
  43. }
  44. }