using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using TEAMModelOS.SDK.Context.Attributes.Azure; namespace TEAMModelOS.SDK.Models { /// /// 作业数据 /// public class HomeworkRecord : CosmosEntity { public string school { get; set; } public string teacher { get; set; } /// /// 提交时间 /// public long time { get; set; } /// /// 分数 /// public double score { get; set; } /// /// 作业内容 /// public Content content { get; set; } /// /// 教师评语 /// public List comments { get; set; } = new List(); } /// /// 作业内容 /// public class Content { /// /// 作答记录 /// public List> answers { get; set; } = new List>(); /// /// 其他模式url 及name /// public List resource { get; set; } = new List(); } /// /// 作业评论 /// public class HomeworkComment { /// /// 身份类型 校内学生账号 student 醍摩豆账号 tmdid /// public string idtype { get; set; } /// /// 评论人的id /// public string id { get; set; } /// /// 评论人 /// public string name { get; set; } /// /// 学校 /// public string school { get; set; } /// /// 评分 /// public int score { get; set; } = -1; public List replyIds { get; set; } = new List(); public long time { get; set; } } }