using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace TEAMModelOS.SDK.Models { /// /// 话题 /// public class Debate : CosmosEntity { public string scope { get; set; } public string userType { get; set; } ///id设计 uuid /// code 设计 Debate-hbcn /// /// 创建者的醍摩豆ID /// public string tmdid { get; set; } /// /// 创建者昵称 /// public string tmdname { get; set; } /// /// 话题的标题 /// public string title { get; set; } /// /// 话题内容 /// public string comment { get; set; } /// /// 创建时间 /// public long time { get; set; } /// /// 评论/话题的统一id,用于被关联 /// public string comid { get; set; } ///// ///// 统一id集合。 ///// //public string unionid { get; set; } /// /// 点赞数 /// public int likeCount { get; set; } /// /// 学校编码 /// public string school { get; set; } /// /// 回复记录 /// public List replies { get; set; } = new List(); /// /// 允许回复的字数 /// public int wordCount { get; set; } /// /// 是否开启话题时间范围内再回复。 默认不开启,则到期时间戳 expire为0 /// public bool timeoutReply { get; set; } = false; /// /// 到期时间///服务器需要返回当前时间。 /// public long expire { get; set; } = 0; /// /// 话题创建的来源 默认的normal, classvideo,ability,uploadscore,homework,course /// public string source { get; set; } = "normal"; /// /// 0私密话题 1公开话题 /// public int openType { get; set; } = 1; /// /// 话题标签 /// public List tags = new List(); } /// /// 话题回复 /// public class DebateReply{ public string id { get; set; } /// /// 话题的id /// public string pid { get; set; } /// /// 回复者的id /// public string tmdid { get; set; } public string school { get; set; } public string atUserType { get; set; } public string userType { get; set; } /// /// 回复者的昵称 /// public string tmdname { get; set; } public string picture { get; set; } /// /// 回复的评语 /// public string comment { get; set; } /// /// 回复的时间 /// public long time { get; set; } public string atTmdid { get; set; } public string atTmdname { get; set; } public string atPicture { get; set; } /// /// 点赞记录 /// public List likes { get; set; } = new List(); } /// /// 当前话题下的所有评语的点赞记录 /// public class LikeRcd { /// /// 评论或者话题本身的id /// public string replyId { get; set; } /// /// 点赞的tmdid /// public string tmdid { get; set; } public string tmdname { get; set; } public string userType { get; set; } public string picture { get; set; } } }