AssistSchool.cs 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. using System;
  2. using System.Collections.Generic;
  3. using TEAMModelOS.SDK.Models;
  4. namespace TEAMModelBI.Models
  5. {
  6. public class SchoolBase
  7. {
  8. public string id { get; set; }
  9. public string code { get; set; }
  10. public string schoolCode { get; set; }
  11. public string name { get; set; }
  12. public string region { get; set; }
  13. public string province { get; set; }
  14. public string city { get; set; }
  15. public string dist { get; set; }
  16. public int size { get; set; }
  17. public string address { get; set; }
  18. public string picture { get; set; }
  19. public int type { get; set; }
  20. public int scale { get; set; }
  21. public string standard { get; set; }
  22. public string areaId { get; set; }
  23. /// <summary>
  24. /// 校区
  25. /// </summary>
  26. public List<Campus> campuses { get; set; }
  27. }
  28. /// <summary>
  29. /// 学校校展示基础信息购买模组ID
  30. /// </summary>
  31. public class AssistSchool : SchoolBase
  32. {
  33. /// <summary>
  34. /// 学段
  35. /// </summary>
  36. public List<Period> period { get; set; }
  37. public List<SchoolTeacherRoles> assists { get; set; } = new List<SchoolTeacherRoles>();
  38. public List<SchoolTeacherRoles> scAdmin { get; set; } = new List<SchoolTeacherRoles>();
  39. //public int serial { get; set; } //软体
  40. //public int service { get; set; } //服务
  41. //public int hard { get; set; } //硬体
  42. public long lessonCount { get; set; } = 0; //学校课例数量
  43. public List<string> serial { get; set; } = new List<string>(); //软体
  44. public List<string> service { get; set; } = new List<string>(); //服务
  45. public List<string> hard { get; set; } = new List<string>(); //硬体
  46. }
  47. public class SchoolPeriod
  48. {
  49. public string name { get; set; }
  50. public string id { get; set; }
  51. public List<string> grades { get; set; }
  52. public List<Subject> subjects { get; set; }
  53. }
  54. /// <summary>
  55. /// 学校展示基础信息购买模组详细信息
  56. /// </summary>
  57. public class SchoolInfo : SchoolBase
  58. {
  59. public List<SchoolPeriod> period { get; set; }
  60. public List<SchoolTeacherRoles> assists { get; set; } = new List<SchoolTeacherRoles>();
  61. public List<ProductSumInfos> serial { get; set; } = new List<ProductSumInfos>(); //软体
  62. public List<ProductSumInfos> service { get; set; } = new List<ProductSumInfos>(); //服务
  63. public List<SchoolProductSumDataHard> hard { get; set; } = new List<SchoolProductSumDataHard>(); //硬体
  64. }
  65. /// <summary>
  66. /// 软体和服务信息
  67. /// </summary>
  68. public class ProductSumInfos
  69. {
  70. /// <summary>
  71. /// 商品标识
  72. /// </summary>
  73. public string prodCode { get; set; }
  74. public int avaliable { get; set; }
  75. public long startDate { get; set; }
  76. public long endDate { get; set; }
  77. }
  78. /// <summary>
  79. /// 简要信息
  80. /// </summary>
  81. public class SimpleInfo
  82. {
  83. public string id { get; set; }
  84. public string name { get; set; }
  85. public string picture { get; set; }
  86. }
  87. /// <summary>
  88. /// 醍摩豆用户信息
  89. /// </summary>
  90. public class TmdUserinfo
  91. {
  92. public string searchKey { get; set; }
  93. public string id { get; set; }
  94. public string vid { get; set; }
  95. public string name { get; set; }
  96. public string mail { get; set; }
  97. public string mobile { get; set; }
  98. public string picture { get; set; }
  99. public bool isActivate { get; set; }
  100. }
  101. /// <summary>
  102. /// 管理员所管理的学校信息
  103. /// </summary>
  104. public class ManageScInfo
  105. {
  106. public string id { get; set; }
  107. public string code { get; set; }
  108. public string schoolCode { get; set; }
  109. public string picture { get; set; }
  110. public string name { get; set; }
  111. public string region { get; set; }
  112. public string province { get; set; }
  113. public string city { get; set; }
  114. public string dist { get; set; }
  115. public string areaId { get; set; }
  116. }
  117. public class BatchScManage : SimpleInfo
  118. {
  119. public string areaId { get; set; }
  120. }
  121. //CoreService學校基本資料
  122. public class CsSchoolBase
  123. {
  124. public string id { get; set; }
  125. public string code { get; set; } //學校教育部代碼
  126. public string name { get; set; }
  127. public string countryId { get; set; }
  128. public string countryName { get; set; }
  129. public string provinceId { get; set; }
  130. public string provinceName { get; set; }
  131. public string cityId { get; set; }
  132. public string cityName { get; set; }
  133. public string distId { get; set; }
  134. public string distName { get; set; }
  135. public string address { get; set; }
  136. public string source { get; set; }
  137. public string shortCode { get; set; } //學校簡碼
  138. public string lang { get; set; }
  139. public string unitType { get; set; }
  140. public string tel { get; set; }
  141. public string type { get; set; }
  142. }
  143. #region api解析
  144. /// <summary>
  145. /// api解析
  146. /// </summary>
  147. public record SchoolConfig
  148. {
  149. public string Lang { get; set; }
  150. public List<semester> semester { get; set; }
  151. public List<string> grades { get; set; }
  152. public List<PresetSubject> PresetSubject { get; set; }
  153. public List<PresetExam> PresetExam { get; set; }
  154. }
  155. /// <summary>
  156. ///
  157. /// </summary>
  158. public record semester
  159. {
  160. public string id { get; set; } = Guid.NewGuid().ToString();
  161. public string term { get; set; }
  162. public int start { get; set; }
  163. public int month { get; set; }
  164. public int day { get; set; }
  165. }
  166. /// <summary>
  167. ///
  168. /// </summary>
  169. public record PresetSubject
  170. {
  171. public string id { get; set; } = Guid.NewGuid().ToString();
  172. public string name { get; set; }
  173. public int type { get; set; }
  174. }
  175. public record PresetExam
  176. {
  177. public List<StudyType> type { get; set; }
  178. public int income { get; set; }
  179. public int eugenics { get; set; }
  180. public int touch { get; set; }
  181. }
  182. public record StudyType
  183. {
  184. public string id { get; set; } = Guid.NewGuid().ToString();
  185. public string name { get; set; }
  186. }
  187. #endregion
  188. }