using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TEAMModelOS.SDK.Models.Dtos { /// /// 通用返回数据结构 /// /// public class ResponseData { public int code { get; set; } public string msg { get; set; } public T data { get; set; } } /// /// 第三方获取学校结构 /// public class OSchool { public string id { get; set; } public string name { get; set; } public string picture { get; set; } } /// /// 第三方获取学校结构 /// public class OCourse { public string id { get; set; } public string name { get; set; } public string code { get; set; } /// /// 科目编码 /// public SubjectSimple subject { get; set; } /// /// 学段编码 /// public PeriodSimple period { get; set; } public string desc { get; set; } public Schedule schedule { get; set; } public string no { get; set; } public string creatorId { get; set; } /// /// 学校编码或教师tmdid /// public string school { get; set; } //哪一学年的课程 public int year { get; set; } } /// /// 名单列表信息 /// public class OGroupList { public string id { get; set; } public string name { get; set; } public string type { get; set; } public string periodId { get; set; } public string school { get; set; } public string scope { get; set; } public int year { get; set; } public long expire { get; set; } = 0; } /// /// 名单成员信息 /// public class OGgroup { public string id { get; set; } public string name { get; set; } public string no { get; set; } public string periodId { get; set; } public string school { get; set; } public string type { get; set; } public int year { get; set; } public int tcount { get; set; } public int scount { get; set; } public string leader { get; set; } public long expire { get; set; } = 0; public List members { get; set; } = new List(); } /// /// 物理教室信息 /// public class ORoom { public string id { get; set; } public string name { get; set; } public float? x { get; set; } public float? y { get; set; } public string openType { get; set; } public string style { get; set; } public string area { get; set; } public string address { get; set; } public string school { get; set; } } /// /// 教师批量数据结构 /// public class ImportTechDto { public List teachers { get; set; } = new List(); } public class ImportTech { [Required(ErrorMessage = "教师id必须设置")] public string id { get; set; } public List subjects { get; set; } [RegularExpression(@"[0-9a-zA-Z]{8}(-[0-9a-zA-Z]{4}){3}-[0-9a-zA-Z]{12}", ErrorMessage = "学段的uuid格式错误!")] public string periodId { get; set; } public string job { get; set; } } public class ImportTechSubject { [RegularExpression(@"[0-9a-zA-Z]{8}(-[0-9a-zA-Z]{4}){3}-[0-9a-zA-Z]{12}", ErrorMessage = "科目的uuid格式错误!")] public string id { get; set; } [Required(ErrorMessage = "科目名称 必须设置")] public string name { get; set; } } /// /// 批量导入成功返回教师信息 /// public class OTeachers { public string id { get; set; } public string name { get; set; } public string picture { get; set; } public string job { get; set; } public List subjectIds { get; set; } public List roles { get; set; } = new List(); public string school { get; set; } } }