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 TEAMModelFunction { public class Classroom:ID { public string pk { get; set; } public int? ttl { get; set; } public Classroom() { students = new List(); teacher = new Teachers(); } [JsonPropertyName("id")] public string id { 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 int studentCount { get; set; } public List students { get; set; } /// /// TBL IRS 类型区分 /// public string style { get; set; } public int status { get; set; } = 1; /// /// /*[ProtoMember(13)] [Required(ErrorMessage = "{0} 必须填写,请设置个人教室还是学校教室")] public int type { get; set; } = 1;*/ [PartitionKey] public string code { get; set; } /// /// 教室属性,普通 /专设的教室 /// public string openType { get; set; } public string scope { get; set; } } public class StudentSimple { 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; } } public class Teachers { public string id { get; set; } public string name { get; set; } } }