Teacher.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 List<TeacherSchool> schools { get; set; } = new List<TeacherSchool>();
  14. public List<TeacherArea> areas { get; set; } = new List<TeacherArea>();
  15. public List<ThirdBind> binds { get; set; } = new List<ThirdBind>();
  16. public int lessonLimit { get; set; } = 0;
  17. public List<string> lessonShow { get; set; } = new List<string>();
  18. /// <summary>
  19. /// 创建时间 十位 时间戳
  20. /// </summary>
  21. public long createTime { get; set; }
  22. /// <summary>
  23. /// 保留当天的登录信息
  24. /// </summary>
  25. public List<LoginInfo> loginInfos { get; set; } = new List<LoginInfo>();
  26. public string lang { get; set; }
  27. public class LoginInfo
  28. {
  29. /// <summary>
  30. /// 时间戳 毫秒
  31. /// </summary>
  32. public long time { get; set; }
  33. /// <summary>
  34. /// ip地址
  35. /// </summary>
  36. public string ip { get; set; }
  37. /// <summary>
  38. /// token到期时间
  39. /// </summary>
  40. public long expire { get; set; }
  41. }
  42. public class TeacherSchool
  43. {
  44. public string schoolId { get; set; }
  45. public string name { get; set; }
  46. public string status { get; set; }
  47. public long time { get; set; }
  48. public string picture { get; set; }
  49. public string areaId { get; set; }
  50. }
  51. public class TeacherArea
  52. {
  53. public string areaId { get; set; }
  54. public string name { get; set; }
  55. public string status { get; set; }
  56. }
  57. public class ThirdBind
  58. {
  59. /// <summary>
  60. /// scsyxpt 四川省研修平台
  61. /// </summary>
  62. public string type { get; set; }
  63. /// <summary>
  64. /// 用户来源
  65. /// </summary>
  66. //public string path { get; set; }
  67. public string userid { get; set; }
  68. public string username { get; set; }
  69. public string account { get; set; }
  70. // public HashSet<string> pxid { get; set; } = new HashSet<string>();
  71. public List<string> data { get; set; } = new List<string>();
  72. }
  73. }
  74. }