using Azure.Cosmos; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using System.Text.Json; using System.Text.Json.Serialization; using TEAMModelOS.SDK.Context.Attributes.Azure; using TEAMModelOS.SDK.DI; namespace TEAMModelOS.SDK.Models { public class Class : CosmosEntity { public Class() { pk = "Class"; teacher = new Teachers(); students = new List(); } /// /// 教室编号 /// public string no { get; set; } public float x { get; set; } public float y { get; set; } public string name { get; set; } public Teachers teacher { get; set; } public string periodId { get; set; } public string gradeId { get; set; } public string sn { get; set; } public List students { get; set; } /// /// TBL IRS 类型区分 /// public string style { get; set; } public int status { get; set; } = 1; /// /// 教室属性,普通 /专设的教室 /// public string openType { get; set; } public string scope { get; set; } /// /// 学生名单数据来源 1是不同学校的学生账号,2是扫码加入的醍摩豆ID /// public int source { get; set; } } } public class Point { public float x { get; set; } public float y { get; set; } } public class StudentSimple { /// /// 数据来源的分区键 如果是学校的编码 则是学校编码,如果是tmdid则是Base /// public string scode { get; set; } public string id { get; set; } public string name { get; set; } public string no { get; set; } public string groupId { get; set; } public string groupName { get; set; } }