Student.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using TEAMModelOS.SDK.Context.Attributes.Azure;
  6. namespace TEAMModelOS.Service.Models.Core
  7. {
  8. public class Student
  9. {
  10. public string id { get; set; }
  11. /// <summary>
  12. /// 0 动态id 透過第三方申請,未認證手機號,TEAMModelId暫時為virtualId但是不顯示在介面上,當使用者驗證手機號後TEAMModelId會變為手機號。
  13. /// 1 动态id 透過手機號申請,TEAMModelId為手機號
  14. /// 2 學生ID,透過學校建立,TEAMModelId格式為 {學校簡碼}#{學號}
  15. /// </summary>
  16. public int type { get; set; }
  17. public string name { get; set; }
  18. public string email { get; set; }
  19. public string cellphone { get; set; }
  20. public string countryCode { get; set; }
  21. public int verifyFlg { get; set; }
  22. public int status { get; set; } = 0;
  23. public long createDate { get; set; }
  24. public Password password { get; set; }
  25. public string exValue { get; set; }
  26. public string product { get; set; }
  27. public List<ProductToken> productToken { get; set; }
  28. /// <summary>
  29. /// 0 1 dynamic 1学校id
  30. /// </summary>
  31. [PartitionKey]
  32. public string schoolCode { get; set; } ///
  33. public string shortCode { get; set; }
  34. public string profilePicture { get; set; }
  35. public string profilePictureUrl { get; set; }
  36. public string TEAMModelId { get; set; }
  37. public string loginTime { get; set; }
  38. public string virtualId { get; set; }
  39. public List<Oauth> oauth { get; set; } // 0 1
  40. public string haveDevice { get; set; }//2
  41. public Classroom classroom { get; set; }
  42. public string studentId { get; set; }
  43. }
  44. }
  45. public class Password {
  46. public string value { get; set; }
  47. public bool isSet { get; set; } = true;
  48. public bool isReset { get; set; } = false;
  49. }
  50. public class ProductToken
  51. {
  52. public string station { get; set; }
  53. public string url { get; set; }
  54. public string licenseStatus { get; set; }
  55. public string exp { get; set; }
  56. public string memberId { get; set; }
  57. }
  58. public class Oauth
  59. {
  60. public string provider { get; set; }
  61. public string openId { get; set; }
  62. }