School.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. }
  30. public class TimeTable
  31. {
  32. public string id { get; set; }
  33. public string label { get; set; }
  34. public string time { get; set; }
  35. public string type { get; set; }
  36. public Dictionary<string, object> weeklies { get; set; }
  37. }
  38. public class ExamSimple
  39. {
  40. public string id { get; set; }
  41. public string name { get; set; }
  42. //public List<SmallType> type {get;set;}
  43. }
  44. public class SmallType
  45. {
  46. public string id { get; set; }
  47. public string name { get; set; }
  48. }
  49. /// <summary>
  50. /// 时区
  51. /// </summary>
  52. public class TimeZone
  53. {
  54. public string label { get; set; } = null;
  55. public string value { get; set; } = null;
  56. }
  57. }