ExamPaperQuestionMajorInput.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. namespace YBEE.EQM.Application;
  2. /// <summary>
  3. /// 添加试卷大题输入参数
  4. /// </summary>
  5. public class AddExamPaperQuestionMajorInput
  6. {
  7. /// <summary>
  8. /// 双向细目表头ID
  9. /// </summary>
  10. [Required]
  11. public int ExamPaperId { get; set; }
  12. /// <summary>
  13. /// 顺序
  14. /// </summary>
  15. [Required]
  16. public int Sequence { get; set; }
  17. /// <summary>
  18. /// 题号
  19. /// </summary>
  20. [Required, StringLength(20)]
  21. public string Number { get; set; }
  22. /// <summary>
  23. /// 标题
  24. /// </summary>
  25. [StringLength(100)]
  26. public string Title { get; set; } = "";
  27. /// <summary>
  28. /// 提示语
  29. /// </summary>
  30. [StringLength(200)]
  31. public string Hint { get; set; } = "";
  32. /// <summary>
  33. /// 分值
  34. /// </summary>
  35. [Required]
  36. public decimal Score { get; set; } = 0;
  37. /// <summary>
  38. /// 备注
  39. /// </summary>
  40. [StringLength(200)]
  41. public string Remark { get; set; } = "";
  42. }
  43. /// <summary>
  44. /// 更新试卷大题输入参数
  45. /// </summary>
  46. public class UpdateExamPaperQuestionMajorInput : AddExamPaperQuestionMajorInput
  47. {
  48. /// <summary>
  49. /// 主键
  50. /// </summary>
  51. [Required]
  52. public int Id { get; set; }
  53. }