ExamPaperQuestionMinorInput.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 添加试卷小题输入参数
  5. /// </summary>
  6. public class AddExamPaperQuestionMinorInput
  7. {
  8. /// <summary>
  9. /// 双向细目表头ID
  10. /// </summary>
  11. [Required]
  12. public int ExamPaperId { get; set; }
  13. /// <summary>
  14. /// 题型类别
  15. /// </summary>
  16. public QuestionCatalog? QuestionCatalog { get; set; }
  17. /// <summary>
  18. /// 大题ID
  19. /// </summary>
  20. public int? ExamPaperQuestionMajorId { get; set; }
  21. /// <summary>
  22. /// 顺序
  23. /// </summary>
  24. [Required]
  25. public int Sequence { get; set; } = 0;
  26. /// <summary>
  27. /// 成绩文件列名
  28. /// </summary>
  29. [Required, StringLength(100)]
  30. public string ColumnName { get; set; }
  31. /// <summary>
  32. /// 小题
  33. /// </summary>
  34. [Required, StringLength(100)]
  35. public string Name { get; set; }
  36. /// <summary>
  37. /// 分值
  38. /// </summary>
  39. [Required]
  40. public decimal Score { get; set; } = 0;
  41. /// <summary>
  42. /// 知识模块
  43. /// </summary>
  44. [StringLength(200)]
  45. public string KnowledgeModule { get; set; }
  46. /// <summary>
  47. /// 知识点
  48. /// </summary>
  49. [StringLength(200)]
  50. public string KnowledgePoint { get; set; }
  51. /// <summary>
  52. /// 认知能力
  53. /// </summary>
  54. public CognitiveAbility? CognitiveAbility { get; set; }
  55. /// <summary>
  56. /// 预估难度
  57. /// </summary>
  58. public decimal EstimatedDifficulty { get; set; } = 0;
  59. /// <summary>
  60. /// 是否选做
  61. /// </summary>
  62. [Required]
  63. public bool IsChoose { get; set; } = false;
  64. /// <summary>
  65. /// 是否最小计分项
  66. /// </summary>
  67. [Required]
  68. public bool IsLeaf { get; set; } = true;
  69. }
  70. /// <summary>
  71. /// 更新试卷小题输入参数
  72. /// </summary>
  73. public class UpdateExamPaperQuestionMinorInput : AddExamPaperQuestionMinorInput
  74. {
  75. /// <summary>
  76. /// 主键
  77. /// </summary>
  78. [Required]
  79. public int Id { get; set; }
  80. }
  81. /// <summary>
  82. /// 批量更新小题输入参数
  83. /// </summary>
  84. public class BatchUpdateExamPaperQuestionMinorInput
  85. {
  86. /// <summary>
  87. /// 小题ID列表
  88. /// </summary>
  89. [Required]
  90. public List<int> Ids { get; set;}
  91. /// <summary>
  92. /// 大题ID
  93. /// </summary>
  94. public int? ExamPaperQuestionMajorId { get; set; }
  95. /// <summary>
  96. /// 分值
  97. /// </summary>
  98. [Required]
  99. public decimal Score { get; set; } = 0;
  100. /// <summary>
  101. /// 题型类别
  102. /// </summary>
  103. public QuestionCatalog? QuestionCatalog { get; set; }
  104. }