ItemInfo.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Text;
  5. using TEAMModelOS.SDK.Context.Attributes.Azure;
  6. using TEAMModelOS.SDK.DI;
  7. namespace TEAMModelOS.Models.CommonInfo
  8. {
  9. /// <summary>
  10. /// Teaching materials 教学材料 题目信息
  11. /// </summary>
  12. [CosmosDB(Database = "TEAMModelOS", Name = "Common", Cache =true)]
  13. public class ItemInfo :ID
  14. {
  15. [PartitionKey]
  16. [Required(ErrorMessage = "{0} 必须填写")]
  17. public string code { get; set; }
  18. //[PartitionKey(name = "ExamItem")]
  19. public string pk { get; set; }
  20. public int? ttl { get; set; }
  21. public ItemInfo()
  22. {
  23. children = new List<ItemInfo>();
  24. option = new List<CodeValue>();
  25. answer = new List<string>();
  26. points = new List<string>();
  27. gradeIds = new List<string>();
  28. repairResource = new List<ProcessRes>();
  29. }
  30. public string shaCode { get; set; }
  31. //题干
  32. [Required(ErrorMessage = "{0} 必须填写")]
  33. public string question { get; set; }
  34. // 选项 单选 多选 判断
  35. public List<CodeValue> option { get; set; }
  36. public List<string> answer { get; set; }
  37. //解析
  38. public string explain { get; set; }
  39. /// <summary>
  40. /// 题型 Single单选,Multiple多选,Judge判断,Complete填空,Subjective问答,Compose综合
  41. /// </summary>
  42. public string type { get; set; }
  43. /// <summary>
  44. /// 上级shaCode
  45. /// </summary>
  46. public string pShaCode { get; set; }
  47. //管理知识点
  48. public List<string> points { get; set; }
  49. //认知层次 应用 综合 理解 评鉴 知识
  50. public int? field { get; set; }
  51. public List<ItemInfo> children { get; set; }
  52. // 配分
  53. public double score { get; set; }
  54. /// <summary>
  55. /// 题号
  56. /// </summary>
  57. public int order { get; set; }
  58. //补救
  59. //public string repair { get; set; }
  60. /// <summary>
  61. /// 补救资源
  62. /// </summary>
  63. public List<ProcessRes> repairResource { get; set; }
  64. public string subjectId { get; set; }
  65. public string periodId { get; set; }
  66. public List<string> gradeIds { get; set; }
  67. /// <summary>
  68. /// 难度
  69. /// </summary>
  70. public int level { get; set; }
  71. public string id { get ; set ; }
  72. /// <summary>
  73. /// 是否综合题的小题
  74. /// </summary>
  75. public bool lite { get; set; } = false;
  76. //创建时间
  77. public long createTime { get; set; }
  78. //创建者
  79. public string creator { get; set; }
  80. //使用次数
  81. public int useCount { get; set; }
  82. public string examCode { get; set; }
  83. public string blob { get; set; }
  84. public string scope { get; set; }
  85. public string pId { get; set; }
  86. }
  87. }