作者 郑周

Merge branch 'dev' into test

... ... @@ -263,6 +263,8 @@ type (
CountLove int `json:"countLove"` // 点赞数量
CountComment int `json:"countComment"` // 评论数量
Show int `json:"show"` // 评论的展示状态(0显示、1不显示)
AtWho []SimpleUser `json:"atWho"` // @用户
MatchUrl map[string]string `json:"matchUrl"` // 内容中的url文本
}
... ...
... ... @@ -204,6 +204,14 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma
CountLove: v.CountUserLove,
CountComment: v.CountReply,
Show: int(v.Show),
MatchUrl: v.MatchUrl,
}
to.Comment.AtWho = make([]types.SimpleUser, 0)
for _, at := range v.AtWho {
to.Comment.AtWho = append(to.Comment.AtWho, types.SimpleUser{
Id: at.Id,
Name: at.Name,
})
}
}
... ...
... ... @@ -606,6 +606,8 @@ type SimpleComment struct {
CountLove int `json:"countLove"` // 点赞数量
CountComment int `json:"countComment"` // 评论数量
Show int `json:"show"` // 评论的展示状态(0显示、1不显示)
AtWho []SimpleUser `json:"atWho"` // @用户
MatchUrl map[string]string `json:"matchUrl"` // 内容中的url文本
}
type MiniBeLikedRequest struct {
... ...