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