ScYxptModel.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. using Microsoft.Table;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Text;
  6. using TEAMModelOS.SDK.Context.Attributes.Azure;
  7. namespace TEAMModelOS.SDK.Models
  8. {
  9. public class ScYxptModel
  10. {
  11. }
  12. [TableName(Name = "ScYxpt")]
  13. public class ScTeacherDiagnosis :TableEntity
  14. {
  15. /// <summary>
  16. /// pk="ScTeacherDiagnosis"
  17. /// rk=$"{PXID}"
  18. /// </summary>
  19. public string areaId { get; set; }
  20. public string schoolCode { get; set; }
  21. public string abilityNos { get; set; }
  22. }
  23. [TableName(Name = "ScYxpt")]
  24. public class ScProjectDiagnosis : TableEntity
  25. {
  26. ///学校的
  27. /// <summary>
  28. /// pk="ScSchoolDiagnosis"
  29. /// rk=$"{ProjectItemID}-{schoolCode}" 1086-206811
  30. /// </summary>
  31. ///项目的
  32. /// <summary>
  33. /// pk="ScProjectDiagnosis"
  34. /// rk=$"{ProjectItemID}"
  35. /// </summary>
  36. public string abilityNos { get; set; }
  37. public string areaId{get;set;}
  38. public string schoolCode { get; set; }
  39. public int ProjectID { get; set; }
  40. public int ProjectItemID { get; set; }
  41. }
  42. public class ScDiagnosis
  43. {
  44. public string diagnosisName { get; set; }
  45. public string DiagnosisDicNum { get; set; }
  46. public int ID { get; set; }
  47. }
  48. [TableName(Name = "ScYxpt")]
  49. public class ScComConfig : TableEntity
  50. { /// <summary>
  51. /// pk="ScComConfig"
  52. /// rk=$"{trainComID}"
  53. /// </summary>
  54. public string passKey { get; set; }
  55. public string trainComID { get; set; }
  56. public string trainComName { get; set; }
  57. public string privateKey { get; set; }
  58. public string url { get; set; }
  59. }
  60. [TableName(Name = "ScYxpt")]
  61. public class ScProject : TableEntity
  62. { /// <summary>
  63. /// pk="ScProject"
  64. /// rk=$"{ProjectItemID}"
  65. /// </summary>
  66. /// <summary>
  67. /// ["pdf"]
  68. /// </summary>
  69. public string homeworkType { get; set; }
  70. public string areaId { get; set; }
  71. public string areaName{ get; set; }
  72. public string path { get; set; }
  73. public string passKey { get; set; }
  74. public string trainComID { get; set; }
  75. public string privateKey { get; set; }
  76. public string url { get; set; }
  77. public string standard { get; set; }
  78. public string config { get; set; } = "scsyxpt";//scsyxpt
  79. public int ProjectID { get; set; }
  80. public string ProjectTitle { get; set; }
  81. public int ProjectItemID { get; set; }
  82. public string ProjectItemTitle { get; set; }
  83. public int TCount { get; set; }
  84. public int IsQuota { get; set; }
  85. public int IsDiagnosis { get; set; }
  86. public int SchoolDiagnosisMinDimension { get; set; }
  87. public int SchoolDiagnosisMinCount { get; set; }
  88. public int TeacherDiagnosisMinDimension { get; set; }
  89. }
  90. [TableName(Name = "ScYxpt")]
  91. public class ScSchool : TableEntity
  92. {
  93. /// <summary>
  94. /// pk="ScSchool"
  95. /// rk=$"{schoolid}"
  96. /// </summary>
  97. public int schoolid { get; set; }
  98. public string schoolname { get; set; }
  99. public string schoolnickname { get; set; }
  100. public int areaid { get; set; }
  101. public string areaname { get; set; }
  102. public int schoollenid { get; set; }
  103. public int schooltypeid { get; set; }
  104. public string schooltypename { get; set; }
  105. public int proid { get; set; }
  106. public int cityid { get; set; }
  107. public int disid { get; set; }
  108. public int statu { get; set; }
  109. public string schoolCode { get; set; }
  110. public string dist { get; set; }
  111. public string city { get; set; }
  112. public string areaId { get; set; }
  113. //public int ProjectID { get; set; }
  114. //public int ProjectItemID { get; set; }
  115. }
  116. [TableName(Name = "ScYxpt")]
  117. public class ScTeacher: TableEntity
  118. {
  119. /// <summary>
  120. /// pk="ScTeacher"
  121. /// rk=$"{PXID}"
  122. /// </summary>
  123. public int PXID { get; set; }
  124. public int TID { get; set; }
  125. public string TeacherName { get; set; }
  126. public int SchoolID { get; set; }
  127. public string SchoolName { get; set; }
  128. public int ProjectID { get; set; }
  129. public int ProjectItemID { get; set; }
  130. public string ProjectTitle { get; set; }
  131. public string ProjectItemTitle { get; set; }
  132. public string CityID { get; set; }
  133. public string DistrictID { get; set; }
  134. public string CityName { get; set; }
  135. public string DisName { get; set; }
  136. public string Account { get; set; }
  137. public string TeacherXK { get; set; }
  138. public string TeacherXD { get; set; }
  139. public string Mobile { get; set; }
  140. public string Email { get; set; }
  141. public string tmdid { get; set; }
  142. public string areaId { get; set; }
  143. public string schoolCode { get; set; }
  144. /// <summary>
  145. /// status =1 表示有效, 0 表示无效。
  146. /// </summary>
  147. public int status { get; set; }
  148. }
  149. [TableName(Name = "ScYxpt")]
  150. public class ScConfig : TableEntity
  151. {
  152. /// <summary>
  153. /// pk="ScConfig"
  154. /// rk=$"{pd}-{pid}"
  155. /// </summary>
  156. public string homeworkType { get; set; }
  157. public string path { get; set; }
  158. public string config { get; set; }
  159. public string passKey { get; set; }
  160. public string trainComID { get; set; }
  161. public string privateKey { get; set; }
  162. public string url { get; set; }
  163. public string pd { get; set; }
  164. public string pt { get; set; }
  165. public string pid { get; set; }
  166. public string pit { get; set; }
  167. public string areaId { get; set; }
  168. public string standard { get; set; }
  169. }
  170. public class ScAccessConfig : AccessConfig
  171. {
  172. public string passKey { get; set; }
  173. public string trainComID { get; set; }
  174. public string privateKey { get; set; }
  175. public string url { get; set; }
  176. public List<ScsProject> p { get; set; } = new List<ScsProject>();
  177. }
  178. public class ScsProjectDiagnosis
  179. {
  180. public ScsProject project { get; set; }
  181. public List<ScPDiagnosis> diagnoses { get; set; }
  182. }
  183. public class ScPDiagnosis
  184. {
  185. public string DiagnosisName { get; set; }
  186. public string DiagnosisNum { get; set; }
  187. public int DiagnosisID { get; set; }
  188. }
  189. public class ScsProject
  190. {
  191. /// <summary>
  192. /// 项目id
  193. /// </summary>
  194. public string pd { get; set; }
  195. /// <summary>
  196. /// 子项目id
  197. /// </summary>
  198. public string pid { get; set; }
  199. /// <summary>
  200. /// 项目名称
  201. /// </summary>
  202. public string pt { get; set; }
  203. /// <summary>
  204. /// 子项目名称
  205. /// </summary>
  206. public string pit { get; set; }
  207. public int status { get; set; }=1;
  208. }
  209. public class ScsResult
  210. {
  211. public bool result { get; set; }
  212. public string reason { get; set; }
  213. public string content { get; set; }
  214. public string bizcode { get; set; }
  215. public int code { get; set; }
  216. public string title { get; set; }
  217. }
  218. public class Unbind
  219. {
  220. public string userid { get; set; }
  221. public string id { get; set; }
  222. public string name { get; set; }
  223. public List<ScBindData> data { get; set; }
  224. }
  225. public class ScBindData
  226. {
  227. /// <summary>
  228. /// 学校名称
  229. /// </summary>
  230. public string type { get; set; } = "scsyxpt";
  231. /// <summary>
  232. /// 学校名称 SchoolName
  233. /// </summary>
  234. public string sn { get; set; }
  235. /// <summary>
  236. /// 学校id SchoolID
  237. /// </summary>
  238. public string sid { get; set; }
  239. /// <summary>
  240. /// 项目id ProjectID
  241. /// </summary>
  242. public string pd { get; set; }
  243. /// <summary>
  244. /// 子项目id ProjectItemID
  245. /// </summary>
  246. public string pid { get; set; }
  247. public string pxid { get; set; }
  248. public string userid { get; set; }
  249. public string username { get; set; }
  250. public string account { get; set; }
  251. public string path { get; set; }
  252. }
  253. public class PushFail
  254. {
  255. public string type { get; set; }
  256. public string tmdid { get; set; }
  257. public string name { get; set; }
  258. public string picture { get; set; }
  259. public string school { get; set; }
  260. public string schoolname { get; set; }
  261. public string code { get; set; }
  262. public string msg { get; set; }
  263. public List<CodeValue> msgs { get; set; }
  264. }
  265. public class ScPush
  266. {
  267. public string tmdid { get; set; }
  268. public string userid { get; set; }
  269. public string pxid { get; set; }
  270. public int tbase { get; set; } = -1;//基本信息推送状态 -1 未推送,0 推送失败,1推送成功
  271. public int tability { get; set; } = -1;//能力点推送状态 -1 未推送,0 推送失败,1推送成功
  272. public int tktsl { get; set; } = -1;//课堂实录推送状态 -1 未推送,0 推送失败,1推送成功
  273. public int txbyx { get; set; } = -1;//校本研修推送状态 -1 未推送,0 推送失败,1推送成功
  274. public string rbase { get; set; }//基本信息推送失败原因
  275. public string rability { get; set; }//能力点推送失败原因
  276. public string rktsl { get; set; }//课堂实录推送失败原因
  277. public string rxbyx { get; set; } //校本研修推送失败原因
  278. }
  279. public class ScTchTmd
  280. {
  281. public string tmdid { get; set; }
  282. public string name { get; set; }
  283. public string userid { get; set; }
  284. public string pxid { get; set; }
  285. public string sid { get; set; }
  286. public string pd { get; set; }
  287. public string pid { get; set; }
  288. }
  289. public class ScSSO
  290. {
  291. public string Webid { get; set; }
  292. public string Pxid { get; set; }
  293. public string tid { get; set; }
  294. public string time { get; set; }
  295. public string Encrypt { get; set; }
  296. // public string data { get; set; }
  297. }
  298. public class ScSSOData
  299. {
  300. public string path { get; set; }
  301. public string Pxid { get; set; }
  302. public string tid { get; set; }
  303. public string time { get; set; }
  304. public string Encrypt { get; set; }
  305. public string data { get; set; }
  306. public string username { get; set; }
  307. public string account { get; set; }
  308. }
  309. public class SSO
  310. {
  311. public string type { get; set; }
  312. [Required(ErrorMessage = "{0} 必须填写")]
  313. public string param { get; set; }
  314. public string id_token { get; set; }
  315. public string mobile { get; set; }
  316. }
  317. }