作者 郑周

Merge branch 'dev' into test

@@ -263,6 +263,8 @@ type ( @@ -263,6 +263,8 @@ type (
263 Show int `json:"show"` // 评论的展示状态(0显示、1不显示) 263 Show int `json:"show"` // 评论的展示状态(0显示、1不显示)
264 AtWho []CommentAtWho `json:"atWho"` // 填写评论时@的人 264 AtWho []CommentAtWho `json:"atWho"` // 填写评论时@的人
265 MatchUrl map[string]string `json:"matchUrl"` // 评论内容中的url文本 265 MatchUrl map[string]string `json:"matchUrl"` // 评论内容中的url文本
  266 + CountReply int `json:"countReply"` // 用户回复数量
  267 + CountUserLove int `json:"countUserLove"` // 用户点赞数量
266 } 268 }
267 269
268 MiniBeLikedRequest{ 270 MiniBeLikedRequest{
@@ -190,6 +190,8 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma @@ -190,6 +190,8 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma
190 Id: v.Id, 190 Id: v.Id,
191 Content: v.Content, 191 Content: v.Content,
192 Show: int(v.Show), 192 Show: int(v.Show),
  193 + CountReply: v.CountReply,
  194 + CountUserLove: v.CountUserLove,
193 MatchUrl: v.MatchUrl, 195 MatchUrl: v.MatchUrl,
194 } 196 }
195 to.Comment.AtWho = make([]types.CommentAtWho, 0) 197 to.Comment.AtWho = make([]types.CommentAtWho, 0)
@@ -207,6 +209,8 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma @@ -207,6 +209,8 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma
207 Id: v.Id, 209 Id: v.Id,
208 Content: v.Content, 210 Content: v.Content,
209 Show: int(v.Show), 211 Show: int(v.Show),
  212 + CountReply: v.CountReply,
  213 + CountUserLove: v.CountUserLove,
210 MatchUrl: v.MatchUrl, 214 MatchUrl: v.MatchUrl,
211 } 215 }
212 to.CommentParent.AtWho = make([]types.CommentAtWho, 0) 216 to.CommentParent.AtWho = make([]types.CommentAtWho, 0)
@@ -110,6 +110,8 @@ func (l *MiniMyBeLikedLogic) NewItemSimple(love *domain.UserLoveFlag, company *d @@ -110,6 +110,8 @@ func (l *MiniMyBeLikedLogic) NewItemSimple(love *domain.UserLoveFlag, company *d
110 Id: comment.Id, 110 Id: comment.Id,
111 Content: comment.Content, 111 Content: comment.Content,
112 Show: int(comment.Show), 112 Show: int(comment.Show),
  113 + CountReply: comment.CountReply,
  114 + CountUserLove: comment.CountUserLove,
113 MatchUrl: comment.MatchUrl, 115 MatchUrl: comment.MatchUrl,
114 } 116 }
115 item.Comment.AtWho = make([]types.CommentAtWho, 0) 117 item.Comment.AtWho = make([]types.CommentAtWho, 0)
@@ -110,6 +110,8 @@ func (l *MiniMyLikeLogic) NewItemSimple(love *domain.UserLoveFlag, company *doma @@ -110,6 +110,8 @@ func (l *MiniMyLikeLogic) NewItemSimple(love *domain.UserLoveFlag, company *doma
110 Id: comment.Id, 110 Id: comment.Id,
111 Content: comment.Content, 111 Content: comment.Content,
112 Show: int(comment.Show), 112 Show: int(comment.Show),
  113 + CountReply: comment.CountReply,
  114 + CountUserLove: comment.CountUserLove,
113 MatchUrl: comment.MatchUrl, 115 MatchUrl: comment.MatchUrl,
114 } 116 }
115 item.Comment.AtWho = make([]types.CommentAtWho, 0) 117 item.Comment.AtWho = make([]types.CommentAtWho, 0)
@@ -604,6 +604,8 @@ type SimpleComment struct { @@ -604,6 +604,8 @@ type SimpleComment struct {
604 Show int `json:"show"` // 评论的展示状态(0显示、1不显示) 604 Show int `json:"show"` // 评论的展示状态(0显示、1不显示)
605 AtWho []CommentAtWho `json:"atWho"` // 填写评论时@的人 605 AtWho []CommentAtWho `json:"atWho"` // 填写评论时@的人
606 MatchUrl map[string]string `json:"matchUrl"` // 评论内容中的url文本 606 MatchUrl map[string]string `json:"matchUrl"` // 评论内容中的url文本
  607 + CountReply int `json:"countReply"` // 用户回复数量
  608 + CountUserLove int `json:"countUserLove"` // 用户点赞数量
607 } 609 }
608 610
609 type MiniBeLikedRequest struct { 611 type MiniBeLikedRequest struct {