Teacher.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 int? ttl { get; set; } = -1;
  15. public string id { get; set; }
  16. /// <summary>
  17. /// 0 动态id 透過第三方申請,未認證手機號,TEAMModelId暫時為virtualId但是不顯示在介面上,當使用者驗證手機號後TEAMModelId會變為手機號。
  18. /// 1 动态id 透過手機號申請,TEAMModelId為手機號
  19. /// </summary>
  20. [Required(ErrorMessage = "{0} 必须填写")]
  21. public int type { get; set; }
  22. [Required(ErrorMessage = "{0} 必须填写")]
  23. public string name { get; set; }
  24. public string email { get; set; }
  25. public string cellphone { get; set; }
  26. [PartitionKey]
  27. public string areaCode { get; set; }
  28. public int verifyFlg { get; set; }
  29. public int status { get; set; } = 0;
  30. public long createDate { get; set; }
  31. public Password password { get; set; }
  32. public string exValue { get; set; }
  33. public string product { get; set; }
  34. public List<ProductToken> productToken { get; set; }
  35. public string shortCode { get; set; }
  36. public string profilePicture { get; set; }
  37. public string profilePictureUrl { get; set; }
  38. [JsonPropertyName("TEAMModelId")]
  39. [JsonProperty("TEAMModelId")]
  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. }