using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using System.Text.Json.Serialization; using TEAMModelOS.SDK.Context.Attributes.Azure; using TEAMModelOS.SDK.Module.AzureCosmosDBV3; namespace TEAMModelOS.Service.Models.Core { [CosmosDB(RU = 400, Name = "CoreTeacher")] public class Teacher:ID { public string id { get; set; } /// /// 0 动态id 透過第三方申請,未認證手機號,TEAMModelId暫時為virtualId但是不顯示在介面上,當使用者驗證手機號後TEAMModelId會變為手機號。 /// 1 动态id 透過手機號申請,TEAMModelId為手機號 /// [Required(ErrorMessage = "{0} 必须填写")] public int type { get; set; } [Required(ErrorMessage = "{0} 必须填写")] public string name { get; set; } public string email { get; set; } public string cellphone { get; set; } [PartitionKey] public string areaCode { get; set; } public int verifyFlg { get; set; } public int status { get; set; } = 0; public long createDate { get; set; } public Password password { get; set; } public string exValue { get; set; } public string product { get; set; } public List productToken { get; set; } public string shortCode { get; set; } public string profilePicture { get; set; } public string profilePictureUrl { get; set; } [JsonPropertyName("TEAMModelId")] [JsonProperty("TEAMModelId")] public string TEAMModelId { get; set; } public string loginTime { get; set; } public string virtualId { get; set; } public List oauth { get; set; } // 0 1 public string haveDevice { get; set; }//2 public Classroom classroom { get; set; } public string studentId { get; set; } public int seatNo { get; set; } } }