Teacher.cs 2.6 KB

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