using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using TEAMModelOS.SDK.Context.Attributes.Azure; namespace TEAMModelOS.Service.Models.Core { public class Student { public string id { get; set; } /// /// 0 动态id 透過第三方申請,未認證手機號,TEAMModelId暫時為virtualId但是不顯示在介面上,當使用者驗證手機號後TEAMModelId會變為手機號。 /// 1 动态id 透過手機號申請,TEAMModelId為手機號 /// 2 學生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; } public string countryCode { 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; } /// /// 0 1 dynamic 1学校id /// [PartitionKey] [Required(ErrorMessage = "{0} 必须填写")] public string schoolCode { get; set; } /// public string shortCode { get; set; } public string profilePicture { get; set; } public string profilePictureUrl { get; set; } 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; } } } public class Password { public string value { get; set; } public bool isSet { get; set; } = false; public bool isReset { get; set; } = false; } public class ProductToken { public string station { get; set; } public string url { get; set; } public string licenseStatus { get; set; } public string exp { get; set; } public string memberId { get; set; } } public class Oauth { public string provider { get; set; } public string openId { get; set; } }