using System; using System.Collections.Generic; using TEAMModelOS.SDK.Models; namespace TEAMModelBI.Models { public class SchoolBase { public string id { get; set; } public string code { get; set; } public string schoolCode { get; set; } public string name { get; set; } public string region { get; set; } public string province { get; set; } public string city { get; set; } public string dist { get; set; } public int size { get; set; } public string address { get; set; } public string picture { get; set; } public int type { get; set; } public int scale { get; set; } public string standard { get; set; } public string areaId { get; set; } /// /// 校区 /// public List campuses { get; set; } } /// /// 学校校展示基础信息购买模组ID /// public class AssistSchool : SchoolBase { /// /// 学段 /// public List period { get; set; } public List assists { get; set; } = new List(); public List scAdmin { get; set; } = new List(); //public int serial { get; set; } //软体 //public int service { get; set; } //服务 //public int hard { get; set; } //硬体 public long lessonCount { get; set; } = 0; //学校课例数量 public List serial { get; set; } = new List(); //软体 public List service { get; set; } = new List(); //服务 public List hard { get; set; } = new List(); //硬体 } public class SchoolPeriod { public string name { get; set; } public string id { get; set; } public List grades { get; set; } public List subjects { get; set; } } /// /// 学校展示基础信息购买模组详细信息 /// public class SchoolInfo : SchoolBase { public List period { get; set; } public List assists { get; set; } = new List(); public List serial { get; set; } = new List(); //软体 public List service { get; set; } = new List(); //服务 public List hard { get; set; } = new List(); //硬体 } /// /// 软体和服务信息 /// public class ProductSumInfos { /// /// 商品标识 /// public string prodCode { get; set; } public int avaliable { get; set; } public long startDate { get; set; } public long endDate { get; set; } } /// /// 简要信息 /// public class SimpleInfo { public string id { get; set; } public string name { get; set; } public string picture { get; set; } } /// /// 醍摩豆用户信息 /// public class TmdUserinfo { public string searchKey { get; set; } public string id { get; set; } public string vid { get; set; } public string name { get; set; } public string mail { get; set; } public string mobile { get; set; } public string picture { get; set; } public bool isActivate { get; set; } } /// /// 管理员所管理的学校信息 /// public class ManageScInfo { public string id { get; set; } public string code { get; set; } public string schoolCode { get; set; } public string picture { get; set; } public string name { get; set; } public string region { get; set; } public string province { get; set; } public string city { get; set; } public string dist { get; set; } public string areaId { get; set; } } public class BatchScManage : SimpleInfo { public string areaId { get; set; } } //CoreService學校基本資料 public class CsSchoolBase { public string id { get; set; } public string code { get; set; } //學校教育部代碼 public string name { get; set; } public string countryId { get; set; } public string countryName { get; set; } public string provinceId { get; set; } public string provinceName { get; set; } public string cityId { get; set; } public string cityName { get; set; } public string distId { get; set; } public string distName { get; set; } public string address { get; set; } public string source { get; set; } public string shortCode { get; set; } //學校簡碼 public string lang { get; set; } public string unitType { get; set; } public string tel { get; set; } public string type { get; set; } } #region api解析 /// /// api解析 /// public record SchoolConfig { public string Lang { get; set; } public List semester { get; set; } public List grades { get; set; } public List PresetSubject { get; set; } public List PresetExam { get; set; } } /// /// /// public record semester { public string id { get; set; } = Guid.NewGuid().ToString(); public string term { get; set; } public int start { get; set; } public int month { get; set; } public int day { get; set; } } /// /// /// public record PresetSubject { public string id { get; set; } = Guid.NewGuid().ToString(); public string name { get; set; } public int type { get; set; } } public record PresetExam { public List type { get; set; } public int income { get; set; } public int eugenics { get; set; } public int touch { get; set; } } public record StudyType { public string id { get; set; } = Guid.NewGuid().ToString(); public string name { get; set; } } #endregion }