Teacher.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 class LoginInfo
  30. {
  31. /// <summary>
  32. /// 时间戳 毫秒
  33. /// </summary>
  34. public long time { get; set; }
  35. /// <summary>
  36. /// ip地址
  37. /// </summary>
  38. public string ip { get; set; }
  39. /// <summary>
  40. /// token到期时间
  41. /// </summary>
  42. public long expire { get; set; }
  43. }
  44. public class TeacherSchool
  45. {
  46. public string schoolId { get; set; }
  47. public string name { get; set; }
  48. public string status { get; set; }
  49. public long time { get; set; }
  50. public string picture { get; set; }
  51. public string areaId { get; set; }
  52. public List<string> roles { get; set; } = new List<string>();
  53. }
  54. public class TeacherArea
  55. {
  56. public string areaId { get; set; }
  57. public string name { get; set; }
  58. public string status { get; set; }
  59. }
  60. public class ThirdBind
  61. {
  62. /// <summary>
  63. /// scsyxpt 四川省研修平台
  64. /// </summary>
  65. public string type { get; set; }
  66. /// <summary>
  67. /// 用户来源
  68. /// </summary>
  69. //public string path { get; set; }
  70. public string userid { get; set; }
  71. public string username { get; set; }
  72. public string account { get; set; }
  73. // public HashSet<string> pxid { get; set; } = new HashSet<string>();
  74. public List<string> data { get; set; } = new List<string>();
  75. }
  76. }
  77. }