namespace ZR.Model.Content.Dto { /// /// 评论 /// public class MessageQueryDto : PagerInfo { public long CommentId { get; set; } public long ParentId { get; set; } public int OrderBy { get; set; } public long? UserId { get; set; } public int ClassifyId { get; set; } public long TargetId { get; set; } public DateTime? BeginAddTime { get; set; } public DateTime? EndAddTime { get; set; } } public class ArticleCommentDto { [JsonConverter(typeof(ValueToStringConverter))] public long CommentId { get; set; } /// /// 用户id /// public long UserId { get; set; } /// /// 留言内容 /// public string Content { get; set; } /// /// 最顶级留言id /// [JsonConverter(typeof(ValueToStringConverter))] public long ParentId { get; set; } /// /// 评论时间 /// public DateTime AddTime { get; set; } /// /// 回复用户id /// public int ReplyUserId { get; set; } public string ReplyNickName { get; set; } /// /// 回复留言id /// [JsonConverter(typeof(ValueToStringConverter))] public long ReplyId { get; set; } /// /// 用户ip /// [JsonIgnore] public string UserIP { get; set; } /// /// 地理位置 /// [JsonIgnore] public string Location { get; set; } = string.Empty; /// /// 喜欢次数 /// public int PraiseNum { get; set; } /// /// 评论次数 /// public int ReplyNum { get; set; } ///// ///// 审核状态 0、待审核 1、通过 -1、未通过 ///// //public int AuditStatus { get; set; } /// /// 描述 :是否删除 1、删除 0、正常 /// 空值 : true /// [JsonIgnore] public int IsDelete { get; set; } = 0; public string NickName { get; set; } ///// ///// 分享次数 ///// //public int ShareNunm { get; set; } public string Avatar { get; set; } = string.Empty; public string ChatImg { get; set; } /// /// 分类id /// public int ClassifyId { get; set; } /// /// 目标id /// public long TargetId { get; set; } /// /// 置顶 /// public long Top { get; set; } public bool HasMore { get; set; } = false; public string Position { get { var temp_location = Location.Split("-")?[0]; if (temp_location == "0") { return "IP未知"; } return temp_location?.Replace("省", ""); } } /// /// 回复列表 /// public List ReplyList { get; set; } } }