Student.cs 2.5 KB

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