using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace TEAMModelOS.SDK.Models { /// /// 用于表示学员的 技能点学习记录 放在Teacher表中 /// public class AbilityRecord : CosmosEntity { //id 设计:技能点任务的 abilityTaskId //code 分区键设计 AbilityRecord-hbcn-tmdid /// /// 技能点的id /// public string abilityId { get; set; } public string codeval { get; set; } public string scope { get; set; } public List children { get; set; } } public class TaskRecord { public string id { get; set; } public string pid { get; set; } public long updateTime { get; set; } } /// /// 订阅记录和学习记录 /// public class AbilitySub : CosmosEntity { //id 设计:技能点的 abilityId //code 分区键设计 AbilitySub-hbcn-tmdid /// /// 学校编码 /// public string school { get; set; } /// /// 创建者醍摩豆id /// public string creatorId { get; set; } //public string creatorName { get; set; } /// /// 是否已完成 /// public bool done { get; set; } = false; public bool allDone { get; set; } = false; /// /// 学习完成活得多少学时,从技能点获取 /// public int hour { get; set; } = 0; /// /// 能力点数量 /// public int abilityCount { get; set; } /// /// 上传作品 /// public List uploads { get; set; } = new List(); /// /// 自评打分 -1未评,0未通过,1合格,2优秀 /// public int self { get; set; } = -1;//未自评 /// /// 自测练习题 -1未练习,0未通过,1通过 /// public int exerciseScore { get; set; } = -1;//未练习 /// /// 互评结果 ,并检查是否重复 /// public List otherScore { get; set; } = new List(); /// /// 评论/话题的统一id,用于被关联 /// public string comid { get; set; } /// /// 资源节点的学习记录 /// public List taskRcds { get; set; } = new List(); public List videoRcds { get; set; } = new List(); /// /// 自评时间 /// public long selfTime { get; set; } /// ///automatic,自动分配系统设置的=0,manual手动挑选的=1 /// public int from { get; set; } = 0; /// ///默认未设置0 必修1 通识2 选修3 /// public int currency { get; set; } } public class OtherScoreReply { /// /// 角色类型 成员 member 学校 school 专家 expert /// public string roleType { get; set; } /// /// 评论人的id /// public string tmdid { get; set; } /// /// 评论人 /// public string tmdname { get; set; } //总评 -1未评,0未通过,1合格,2优秀 public int score { get; set; } = -1; /// /// 某人对你这个能力点的学习评价的的评语记录的Id集合。 /// public List replies { get; set; } = new List(); /// /// 根据评判标准进行打分 /// public List scoreUploads { get; set; } = new List(); public long time { get; set; } } public class SubUpload { public int score { get; set; } = -1; /// /// ability的stds:id /// public string stdid { get; set; } /// /// ability的task:id /// public string taskid { get; set; } /// /// 一个标准可以上传多个文件 /// public List urls { get; set; } = new List(); /// /// 勾选了的评语记录 /// public List titleIds { get; set; } /// /// 时间 /// public long time { get; set; } } /// /// 订阅者的资源学习记录 /// public class AbilityVideoRcd { public string abilityTaskId { get; set; } public string abilityId { get; set; } /// /// 视频资源所在的分支节点id /// public string tnodeId { get; set; } public string url { get; set; } public double time { get; set; } public bool done { get; set; } = false; } /// /// 订阅者的资源学习记录 /// public class AbilityTaskRcd { public string id { get; set; } public bool done { get; set; } = false; /// /// 资源的学习记录链接 ,后面再优化 /// public List urls { get; set; } } public class OtherScore { /// /// 角色类型 成员 member 学校 school 专家 expert /// public string roleType { get; set; } /// /// 评论人的id /// public string tmdid { get; set; } /// /// 评论人 /// public string tmdname { get; set; } //总评 -1未评,0未通过,1合格,2优秀 public int score { get; set; } = -1; /// /// 某人对你这个能力点的学习评价的的评语记录的Id集合。 /// public List replyIds { get; set; } = new List(); /// /// 根据评判标准进行打分 /// public List scoreUploads { get; set; } = new List(); public long time { get; set; } } /// /// 互评对所有作品的评价 /// public class ScoreUpload{ /// /// ability的stds:id /// public string stdid { get; set; } /// /// ability的task:id /// public string taskid { get; set; } /// /// 勾选了的评语记录 /// public List titleIds { get; set; } /// /// 当前标准得分 -1未评,0未通过,1合格,2优秀 /// public int score { get; set; } = -1; } }