作者 tangxvhui
... ... @@ -80,6 +80,7 @@ type (
SimpleArticle {
Id int64 `json:"id"`
Title string `json:"title"` // 文章标题
Summary string `json:"summary"` // 文章概要
CountLove int `json:"countLove"` // 点赞数量
CountComment int `json:"countComment"` // 评论数量
Show int `json:"show"` // 文章的展示状态(0显示、1不显示)
... ...
... ... @@ -92,6 +92,7 @@ func NewItemSimple(love *domain.UserLoveFlag, user *domain.User, article *domain
item.Article = &types.SimpleArticle{
Id: article.Id,
Title: article.Title,
Summary: article.Summary,
CountLove: article.CountLove,
CountComment: article.CountComment,
Show: int(article.Show),
... ...
... ... @@ -70,6 +70,7 @@ type SimpleUser struct {
type SimpleArticle struct {
Id int64 `json:"id"`
Title string `json:"title"` // 文章标题
Summary string `json:"summary"` // 文章概要
CountLove int `json:"countLove"` // 点赞数量
CountComment int `json:"countComment"` // 评论数量
Show int `json:"show"` // 文章的展示状态(0显示、1不显示)
... ...