School.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. public string address { get; set; }
  27. public string picture { get; set; }
  28. public TimeZone timeZone { get; set; }
  29. /// <summary>
  30. /// 1 普教,2 高职教
  31. /// </summary>
  32. public int type { get; set; }
  33. }
  34. public class TimeTable
  35. {
  36. public string id { get; set; }
  37. public string label { get; set; }
  38. public string time { get; set; }
  39. public string type { get; set; }
  40. public Dictionary<string, object> weeklies { get; set; }
  41. }
  42. public class ExamSimple
  43. {
  44. public string id { get; set; }
  45. public string name { get; set; }
  46. //public List<SmallType> type {get;set;}
  47. }
  48. public class SmallType
  49. {
  50. public string id { get; set; }
  51. public string name { get; set; }
  52. }
  53. /// <summary>
  54. /// 时区
  55. /// </summary>
  56. public class TimeZone
  57. {
  58. public string label { get; set; } = null;
  59. public string value { get; set; } = null;
  60. }
  61. }