School.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Text;
  5. using System.Text.Json.Serialization;
  6. using TEAMModelOS.SDK.Context.Attributes.Azure;
  7. using TEAMModelOS.SDK.DI;
  8. namespace TEAMModelOS.SDK.Models
  9. {
  10. public class School : CosmosEntity
  11. {
  12. public School()
  13. {
  14. pk = "Base";
  15. timeZone = new TimeZone();
  16. period = new List<Period>();
  17. }
  18. public string schoolCode { get; set; }
  19. public string name { get; set; }
  20. public List<Period> period { get; set; }
  21. public List<Campus> campuses { get; set; }
  22. public string region { get; set; }
  23. public string province { get; set; }
  24. public string city { get; set; }
  25. public int size { get; set; }
  26. /// <summary>
  27. /// 课程计划表
  28. /// </summary>
  29. public List<TimeTable> timetable { get; set; }
  30. public string address { get; set; }
  31. public string picture { get; set; }
  32. public TimeZone timeZone { get; set; }
  33. }
  34. public class TimeTable
  35. {
  36. public string label { get; set; }
  37. public string time { get; set; }
  38. public string type { get; set; }
  39. public Dictionary<string, object> weeklies { get; set; }
  40. }
  41. public class ExamSimple
  42. {
  43. public string id { get; set; }
  44. public string name { get; set; }
  45. //public List<SmallType> type {get;set;}
  46. }
  47. public class SmallType
  48. {
  49. public string id { get; set; }
  50. public string name { get; set; }
  51. }
  52. /// <summary>
  53. /// 时区
  54. /// </summary>
  55. public class TimeZone
  56. {
  57. public string label { get; set; } = null;
  58. public string value { get; set; } = null;
  59. }
  60. }