正在显示
3 个修改的文件
包含
17 行增加
和
5 行删除
| @@ -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 |
| @@ -589,11 +589,13 @@ type MyLikeItem struct { | @@ -589,11 +589,13 @@ type MyLikeItem struct { | ||
| 589 | } | 589 | } |
| 590 | 590 | ||
| 591 | type SimpleComment struct { | 591 | type SimpleComment struct { |
| 592 | - Id int64 `json:"id"` | ||
| 593 | - Content string `json:"content"` // 评论内容 | ||
| 594 | - CountLove int `json:"countLove"` // 点赞数量 | ||
| 595 | - CountComment int `json:"countComment"` // 评论数量 | ||
| 596 | - Show int `json:"show"` // 评论的展示状态(0显示、1不显示) | 592 | + Id int64 `json:"id"` |
| 593 | + Content string `json:"content"` // 评论内容 | ||
| 594 | + CountLove int `json:"countLove"` // 点赞数量 | ||
| 595 | + CountComment int `json:"countComment"` // 评论数量 | ||
| 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 { |
-
请 注册 或 登录 后发表评论