Question.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System.ComponentModel;
  2. using Hotline.Exams.Base;
  3. using Hotline.Share.Enums.Exams;
  4. using SqlSugar;
  5. namespace Exam.Questions
  6. {
  7. /// <summary>
  8. /// 试题
  9. /// </summary>
  10. [Description("试题")]
  11. public class Question : BusinessEntity
  12. {
  13. /// <summary>
  14. /// 题干
  15. /// </summary>
  16. [SugarColumn(ColumnDescription = "题干")]
  17. [Description("题干")]
  18. public string Title { get; set; }
  19. /// <summary>
  20. /// 试题类型
  21. /// </summary>
  22. [SugarColumn(ColumnDescription = "试题类型")]
  23. [Description("试题类型")]
  24. public EQuestionType QuestionType { get; set; }
  25. /// <summary>
  26. /// 难易程度
  27. /// </summary>
  28. [SugarColumn(ColumnDescription = "难易程度")]
  29. [Description("难易程度")]
  30. public EDifficultyLevel DifficultyLevel { get; set; }
  31. /// <summary>
  32. /// 正式可用
  33. /// </summary>
  34. [SugarColumn(ColumnDescription = "正式可用")]
  35. [Description("正式可用")]
  36. public bool FormalEnable { get; set; }
  37. /// <summary>
  38. /// 模拟可用
  39. /// </summary>
  40. [SugarColumn(ColumnDescription = "模拟可用")]
  41. [Description("模拟可用")]
  42. public bool SimulateEnable { get; set; }
  43. /// <summary>
  44. /// 备注
  45. /// </summary>
  46. [SugarColumn(ColumnDescription = "备注")]
  47. [Description("备注")]
  48. public string? Remark { get; set; }
  49. /// <summary>
  50. /// 权重
  51. /// </summary>
  52. [SugarColumn(ColumnDescription ="权重")]
  53. [Description("权重")]
  54. public int Weight { get; set; }
  55. }
  56. }