作者 tangxvhui

Merge branch 'dev' into test

@@ -87,7 +87,8 @@ type ( @@ -87,7 +87,8 @@ type (
87 Images []string `json:"images"` //图片 87 Images []string `json:"images"` //图片
88 CreatedAt int64 `json:"createdAt"` //文章的创建日期 88 CreatedAt int64 `json:"createdAt"` //文章的创建日期
89 CountLove int `json:"countLove"` //点赞数量 89 CountLove int `json:"countLove"` //点赞数量
90 - CountComment int `json:"CountComment"` //评论数量 90 + CountComment int `json:"countComment"` //评论数量
  91 + CountRead int `json:"countRead"` //浏览数量
91 Show int `json:"show"` //是否隐藏 [0显示、1不显示] 92 Show int `json:"show"` //是否隐藏 [0显示、1不显示]
92 } 93 }
93 94
@@ -59,6 +59,7 @@ func NewArticle(article *domain.Article) types.ArticleSearchMe { @@ -59,6 +59,7 @@ func NewArticle(article *domain.Article) types.ArticleSearchMe {
59 CreatedAt: article.CreatedAt, 59 CreatedAt: article.CreatedAt,
60 CountLove: article.CountLove, 60 CountLove: article.CountLove,
61 CountComment: article.CountComment, 61 CountComment: article.CountComment,
  62 + CountRead: article.CountRead,
62 Show: int(article.Show), 63 Show: int(article.Show),
63 } 64 }
64 return articleSearchMe 65 return articleSearchMe
@@ -830,7 +830,8 @@ type ArticleSearchMe struct { @@ -830,7 +830,8 @@ type ArticleSearchMe struct {
830 Images []string `json:"images"` //图片 830 Images []string `json:"images"` //图片
831 CreatedAt int64 `json:"createdAt"` //文章的创建日期 831 CreatedAt int64 `json:"createdAt"` //文章的创建日期
832 CountLove int `json:"countLove"` //点赞数量 832 CountLove int `json:"countLove"` //点赞数量
833 - CountComment int `json:"CountComment"` //评论数量 833 + CountComment int `json:"countComment"` //评论数量
  834 + CountRead int `json:"countRead"` //浏览数量
834 Show int `json:"show"` //是否隐藏 [0显示、1不显示] 835 Show int `json:"show"` //是否隐藏 [0显示、1不显示]
835 } 836 }
836 837