作者 yangfu
... ... @@ -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,
})
}
}
... ...
... ... @@ -601,11 +601,13 @@ type MyLikeItem struct {
}
type SimpleComment struct {
Id int64 `json:"id"`
Content string `json:"content"` // 评论内容
CountLove int `json:"countLove"` // 点赞数量
CountComment int `json:"countComment"` // 评论数量
Show int `json:"show"` // 评论的展示状态(0显示、1不显示)
Id int64 `json:"id"`
Content string `json:"content"` // 评论内容
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 {
... ...