using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace TEAMModelOS.SDK.Models { public class Notice :CosmosEntity { public string title { get; set; } public string content { get; set; } public string school { get; set; } [Required(ErrorMessage = "creatorId 必须设置")] public string creatorId { get; set; } /// /// 发布状态 /// [Required(ErrorMessage = "publish 必须设置")] public int publish { get; set; } = 0; /// /// 开始时间 /// public long startTime { get; set; } /// /// 创建时间 /// public long createTime { get; set; } /// /// 结束时间 /// public long endTime { get; set; } /// /// school, course,class /// public string type { get; set; } } }