using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using System.Text.Json; using TEAMModelOS.SDK.Context.Attributes.Azure; namespace TEAMModelOS.SDK.Models { /// /// 教师作业活动 /// public class Homework : CosmosEntity { public Homework() { pk = "Homework";// classes = new List(); stuLists = new List(); tchLists = new List(); } /// ///发布层级 类型 school teacher /// /// /// 学校编码或教室tmdid /// public string owner { get; set; } public string school { get; set; } /// /// 作业名称 /// [Required(ErrorMessage = "name 必须设置")] public string name { get; set; } /// /// 作业内容 /// public string description { get; set; } public string creatorId { get; set; } // public int year { get; set; } /// /// pending 待发布|going 已发布|finish 已结束 /// //[Required(ErrorMessage = "progress 必须设置")] public string progress { get; set; } public string scope { get; set; } //public List tmdids { get; set; } = new List(); /// /// 行政班 /// public List classes { get; set; } = new List(); /// /// 学生名单(包含自定义个人学生名单,学校教学班) /// public List stuLists { get; set; } = new List(); /// /// 教研组名单 /// public List tchLists { get; set; } = new List(); public List>> groupLists { get; set; } = new List>>(); /// /// student 学生名单类型 research 教研组名单 /// public string targetType { get; set; } /// /// 发布对象全部信息。由前端操作,用于前端回显发布对象的格式。 /// public List targets { get; set; } = new List(); /// ///class行政班/teach教学班 /// //public string classType { get; set; } /// /// 开始时间 /// public long startTime { get; set; } /// /// 结束时间 /// public long endTime { get; set; } public long createTime { get; set; } // 作业发布时间 /// /// 更新时间 /// public long updateTime { get; set; } public string blob { get; set; } /// /// TTL删除改变状态使用 /// public int? status { get; set; } = 0; public long? size { get; set; } = 0; public string areaId { get; set; } /// /// 是否允许补交。 /// public bool allowSupply { get; set; } /// /// 是否允许组长提交。1允许,0不允许。 /// public int leaderSubmit { get; set; } /// /// 是否允许互评 /// public bool allowComment { get; set; } public List extLimit { get; set; } = new List(); public List attachments { get; set; } = new List(); public List teachers { get; set; } = new List(); public string recordUrl { get; set; } public int? publish { get; set; } = 0; public bool mustSubmit { get; set; } = false; //结束后账户统计 public List staffIds { get; set; } = new List(); } public class Submits { public string id { get; set; } //public string name { get; set; } //记录作业上传内容 public string hw { get; set; } public long hwTime { get; set; } } }