namespace Yes.Domain.Blogs
{
public class ArticleModel
{
public int Id { get; set; }
///
/// 作者ID
///
public int UserId { get; set; }
///
/// 分类ID
///
public int CategoryId { get; set; }
///
/// 标题
///
public string Title { get; set; } = string.Empty;
public string Slug { get; set; } = string.Empty;
///
/// 内容
///
public string Content { get; set; } = string.Empty;
///
/// 封面图
///
[StringLength(200)]
public string CoverUrl { get; set; } = string.Empty;
///
/// 摘要
///
[StringLength(200)]
public string Summary { get; set; } = string.Empty;
///
/// 标签
///
public List Tags { get; set; } = new List();
///
/// 发布时间
///
public DateTime PublishDate { get; set; }
///
/// 修改时间
///
public DateTime ModifyDate { get; set; }
public DateTime CreateDate { get; set; }
///
/// 是否允许评论
///
public bool CanComment { get; set; }
///
/// 评论数
///
public int CommentCount { get; set; }
///
/// 阅读数
///
public int ReadCount { get; set; }
public string Link { get; set; } = string.Empty;
public CategoryModel Category { get; set; }
}
}