LearnUnit.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using TEAMModelOS.SDK.Context.Attributes.Azure;
  5. using TEAMModelOS.SDK.Module.AzureCosmosDBV3;
  6. namespace TEAMModelOS.Service.Models.Learn
  7. {
  8. /// <summary>
  9. /// 考试基础信息
  10. /// </summary>
  11. [CosmosDB(RU = 400, Name = "LearnUnit")]
  12. public class LearnUnit:ID
  13. {
  14. public int? ttl { get; set; } = -1;
  15. public LearnUnit() {
  16. //syllabus = new List<string>();
  17. resource = new List<string>();
  18. item = new List<string>();
  19. }
  20. //创建时间
  21. public long createTime { get; set; }
  22. //创建者
  23. public string creator { get; set; }
  24. public string id { get; set; }
  25. //public List<string> syllabus { get; set; }
  26. /// <summary>
  27. /// 资源内容
  28. /// </summary>
  29. public List<string> resource { get; set; }
  30. /// <summary>
  31. /// 题目
  32. /// </summary>
  33. public List<string> item { get; set; }
  34. /// <summary>
  35. /// 名称
  36. /// </summary>
  37. public string name { get; set; }
  38. [PartitionKey]
  39. public string scopeCode { get; set; }
  40. public string subjectCode { get; set; }
  41. }
  42. }