Teacher.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Text;
  6. using System.Text.Json.Serialization;
  7. using TEAMModelOS.SDK.Context.Attributes.Azure;
  8. namespace TEAMModelOS.Service.Models.Core
  9. {
  10. [CosmosDB(RU = 400, Name = "CoreTeacher")]
  11. public class Teacher
  12. {
  13. public string id { get; set; }
  14. /// <summary>
  15. /// 0 动态id 透過第三方申請,未認證手機號,TEAMModelId暫時為virtualId但是不顯示在介面上,當使用者驗證手機號後TEAMModelId會變為手機號。
  16. /// 1 动态id 透過手機號申請,TEAMModelId為手機號
  17. /// </summary>
  18. [Required(ErrorMessage = "{0} 必须填写")]
  19. public int type { get; set; }
  20. [Required(ErrorMessage = "{0} 必须填写")]
  21. public string name { get; set; }
  22. public string email { get; set; }
  23. public string cellphone { get; set; }
  24. [PartitionKey]
  25. public string areaCode { get; set; }
  26. public int verifyFlg { get; set; }
  27. public int status { get; set; } = 0;
  28. public long createDate { get; set; }
  29. public Password password { get; set; }
  30. public string exValue { get; set; }
  31. public string product { get; set; }
  32. public List<ProductToken> productToken { get; set; }
  33. public string shortCode { get; set; }
  34. public string profilePicture { get; set; }
  35. public string profilePictureUrl { get; set; }
  36. [JsonPropertyName("TEAMModelId")]
  37. [JsonProperty("TEAMModelId")]
  38. public string TEAMModelId { get; set; }
  39. public string loginTime { get; set; }
  40. public string virtualId { get; set; }
  41. public List<Oauth> oauth { get; set; } // 0 1
  42. public string haveDevice { get; set; }//2
  43. public Classroom classroom { get; set; }
  44. public string studentId { get; set; }
  45. public int seatNo { get; set; }
  46. }
  47. }