Study.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Text.Json;
  5. namespace TEAMModelOS.SDK.Models.Cosmos.School
  6. {
  7. public class Study : CosmosEntity
  8. {
  9. //教研活动
  10. public Study()
  11. {
  12. pk = "Study";
  13. }
  14. public string name { get; set; }
  15. public string school { get; set; }
  16. //详细信息
  17. public Detail detail { get; set; } = new Detail();
  18. //高级设置
  19. public List<string> settings { get; set; } = new List<string>();
  20. public string creatorId { get; set; }
  21. public long createTime { get; set; }
  22. public long updateTime { get; set; }
  23. public int hour { get; set; }
  24. //教研类型
  25. public int type { get; set; } = 0;
  26. /// <summary>
  27. /// 行政班
  28. /// </summary>
  29. public List<string> classes { get; set; } = new List<string>();
  30. /// <summary>
  31. /// 学生名单(包含自定义个人学生名单,学校教学班)
  32. /// </summary>
  33. public List<string> stuLists { get; set; } = new List<string>();
  34. /// <summary>
  35. /// 教研组名单
  36. /// </summary>
  37. public List<string> tchLists { get; set; } = new List<string>();
  38. /// <summary>
  39. /// student 学生名单类型 research 教研组名单
  40. /// </summary>
  41. public string targetType { get; set; }
  42. /// <summary>
  43. /// 发布对象全部信息。由前端操作,用于前端回显发布对象的格式。
  44. /// </summary>
  45. public List<JsonElement> targets { get; set; } = new List<JsonElement>();
  46. public List<Setting> teachers { get; set; } = new List<Setting>();
  47. public string progress { get; set; }
  48. public string scope { get; set; }
  49. public int? status { get; set; } = 0;
  50. //记录该评测内容下blob大小
  51. public long? size { get; set; } = 0;
  52. /// <summary>
  53. ///发布层级 类型 school area
  54. /// </summary>
  55. public string owner { get; set; }
  56. public string areaId { get; set; }
  57. public string pId { get; set; }
  58. }
  59. public class Setting {
  60. public string id { get; set; }
  61. public string name { get; set; }
  62. public string groupName { get; set; }
  63. public string sign { get; set; }
  64. public long signTime { get; set; }
  65. public string hw { get; set; }
  66. public long hwTime { get; set; }
  67. //0未审核 1 通过 2 未通过
  68. public int status { get; set; }
  69. public long aTime { get; set; }
  70. }
  71. public class Detail {
  72. public string presenter { get; set; }
  73. public string topic { get; set; }
  74. public long startTime { get; set; }
  75. public long endTime { get; set; }
  76. public string address { get; set; }
  77. public string desc { get; set; }
  78. public string img { get; set; }
  79. public string hwName { get; set; }
  80. public string hwDesc { get; set; }
  81. public long hwTime { get; set; }
  82. public string surveyId { get; set; }
  83. public string examId { get; set; }
  84. }
  85. }