using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace TEAMModelOS.SDK.Models.Cosmos.Common { public class Volume: CosmosEntity { /// /// 0默认教学课纲的册别 1个人或单独的专题课纲册别 2,系统课纲 /// // public int type { get; set; } /// /// 学段 /// public string periodId { get; set; } /// /// 学科 /// public string subjectId { get; set; } /// /// 年级 /// public int gradeId { get; set; } /// /// 学期code /// public string semesterId { get; set; } /// /// 状态 /// public int status { get; set; } = 1; /// /// 册别name /// [Required(ErrorMessage = "{0} 必须填写")] public string name { get; set; } /// /// 册别code /// // public string volumeCode { get; set; } /// /// 创建者醍摩豆id /// public string creatorId { get; set; } /// /// 共编使用者 的醍摩豆id /// // public List editors { get; set; } //public int resourceCount { get; set; } //public int itemCount { get; set; } /// /// 学校编码 /// [Required(ErrorMessage = "school 必须设置")] public string school { get; set; } // public bool repeat { get; set; } /// /// school|private /// [Required(ErrorMessage = "scope 必须设置")] public string scope { get; set; } public List auth { get; set; } = new List(); } /// /// 只要创建课纲的creatorId 才能编辑课纲的分享,共编权限 25600 74200 27500 2000 /// ,共编者 谁创建的节点只能谁删除,而且删除时能删除子节点(包含不是自己创建的)。 /// public class SyllabusAuth { public string tmdid { get; set; } public string name { get; set; } public bool coedit { get; set; } public bool share { get; set; } /// ///分享的节点 all 或者節點id /// public List snodes { get; set; } = new List(); } }