Teacher.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace TEAMModelOS.SDK.Models
  6. {
  7. public class Teacher : CosmosEntity
  8. {
  9. public string name { get; set; }
  10. public string picture { get; set; }
  11. public int size { get; set; }
  12. public string defaultSchool { get; set; }
  13. public string defaultschoolPeriod { get; set; }
  14. public List<TeacherSchool> schools { get; set; } = new List<TeacherSchool>();
  15. public List<TeacherArea> areas { get; set; } = new List<TeacherArea>();
  16. public List<ThirdBind> binds { get; set; } = new List<ThirdBind>();
  17. public int lessonLimit { get; set; } = 0;
  18. public List<string> lessonShow { get; set; } = new List<string>();
  19. /// <summary>
  20. /// 创建时间 十位 时间戳
  21. /// </summary>
  22. public long createTime { get; set; }
  23. /// <summary>
  24. /// 保留当天的登录信息
  25. /// </summary>
  26. public List<LoginInfo> loginInfos { get; set; } = new List<LoginInfo>();
  27. public string lang { get; set; }
  28. public double timezone { get; set; } = 8;
  29. public List<string> permission { get; set; } = new List<string>(); //老師個人權限
  30. public class LoginInfo
  31. {
  32. /// <summary>
  33. /// 时间戳 毫秒
  34. /// </summary>
  35. public long time { get; set; }
  36. /// <summary>
  37. /// ip地址
  38. /// </summary>
  39. public string ip { get; set; }
  40. /// <summary>
  41. /// token到期时间
  42. /// </summary>
  43. public long expire { get; set; }
  44. }
  45. public class TeacherSchool
  46. {
  47. public string schoolId { get; set; }
  48. public string name { get; set; }
  49. public string status { get; set; }
  50. public long time { get; set; }
  51. public string picture { get; set; }
  52. public string areaId { get; set; }
  53. public List<string> roles { get; set; } = new List<string>();
  54. }
  55. public class TeacherArea
  56. {
  57. public string areaId { get; set; }
  58. public string name { get; set; }
  59. public string status { get; set; }
  60. }
  61. public class ThirdBind
  62. {
  63. /// <summary>
  64. /// scsyxpt 四川省研修平台
  65. /// </summary>
  66. public string type { get; set; }
  67. /// <summary>
  68. /// 用户来源
  69. /// </summary>
  70. //public string path { get; set; }
  71. public string userid { get; set; }
  72. public string username { get; set; }
  73. public string account { get; set; }
  74. // public HashSet<string> pxid { get; set; } = new HashSet<string>();
  75. public List<string> data { get; set; } = new List<string>();
  76. }
  77. }
  78. }