正在显示
3 个修改的文件
包含
12 行增加
和
0 行删除
| @@ -251,6 +251,8 @@ type ( | @@ -251,6 +251,8 @@ type ( | ||
| 251 | CountLove int `json:"countLove"` // 点赞数量 | 251 | CountLove int `json:"countLove"` // 点赞数量 |
| 252 | CountComment int `json:"countComment"` // 评论数量 | 252 | CountComment int `json:"countComment"` // 评论数量 |
| 253 | Show int `json:"show"` // 评论的展示状态(0显示、1不显示) | 253 | Show int `json:"show"` // 评论的展示状态(0显示、1不显示) |
| 254 | + AtWho []SimpleUser `json:"atWho"` // @用户 | ||
| 255 | + MatchUrl map[string]string `json:"matchUrl"` // 内容中的url文本 | ||
| 254 | } | 256 | } |
| 255 | 257 | ||
| 256 | 258 |
| @@ -204,6 +204,14 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma | @@ -204,6 +204,14 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma | ||
| 204 | CountLove: v.CountUserLove, | 204 | CountLove: v.CountUserLove, |
| 205 | CountComment: v.CountReply, | 205 | CountComment: v.CountReply, |
| 206 | Show: int(v.Show), | 206 | Show: int(v.Show), |
| 207 | + MatchUrl: v.MatchUrl, | ||
| 208 | + } | ||
| 209 | + to.Comment.AtWho = make([]types.SimpleUser, 0) | ||
| 210 | + for _, at := range v.AtWho { | ||
| 211 | + to.Comment.AtWho = append(to.Comment.AtWho, types.SimpleUser{ | ||
| 212 | + Id: at.Id, | ||
| 213 | + Name: at.Name, | ||
| 214 | + }) | ||
| 207 | } | 215 | } |
| 208 | } | 216 | } |
| 209 | 217 |
| @@ -594,6 +594,8 @@ type SimpleComment struct { | @@ -594,6 +594,8 @@ type SimpleComment struct { | ||
| 594 | CountLove int `json:"countLove"` // 点赞数量 | 594 | CountLove int `json:"countLove"` // 点赞数量 |
| 595 | CountComment int `json:"countComment"` // 评论数量 | 595 | CountComment int `json:"countComment"` // 评论数量 |
| 596 | Show int `json:"show"` // 评论的展示状态(0显示、1不显示) | 596 | Show int `json:"show"` // 评论的展示状态(0显示、1不显示) |
| 597 | + AtWho []SimpleUser `json:"atWho"` // @用户 | ||
| 598 | + MatchUrl map[string]string `json:"matchUrl"` // 内容中的url文本 | ||
| 597 | } | 599 | } |
| 598 | 600 | ||
| 599 | type MiniBeLikedRequest struct { | 601 | type MiniBeLikedRequest struct { |
-
请 注册 或 登录 后发表评论