Teacher.cs 2.0 KB

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