ItemInfo.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace TEAMModelOS.SDK.Models
  4. {
  5. /// <summary>
  6. /// Teaching materials 教学材料 题目信息
  7. /// </summary>
  8. public class ItemInfo :BaseItem
  9. {
  10. public ItemInfo()
  11. {
  12. pk = "Item";
  13. children = new List<ItemInfo>();
  14. option = new List<CodeValue>();
  15. answer = new List<string>();
  16. knowledge = new List<string>();
  17. gradeIds = new List<string>();
  18. repair = new List<Repair>();
  19. }
  20. //题干
  21. [Required(ErrorMessage = "{0} 必须填写")]
  22. public string question { get; set; }
  23. // 选项 单选 多选 判断
  24. public List<CodeValue> option { get; set; }
  25. public List<ItemInfo> children { get; set; }
  26. //使用次数
  27. public int useCount { get; set; }
  28. public string blob { get; set; }
  29. //记录试题大小
  30. public long? size { get; set; } = 0;
  31. }
  32. }