Merge branch 'dev' of http://gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss into dev
正在显示
3 个修改的文件
包含
17 行增加
和
5 行删除
| @@ -263,6 +263,8 @@ type ( | @@ -263,6 +263,8 @@ type ( | ||
| 263 | CountLove int `json:"countLove"` // 点赞数量 | 263 | CountLove int `json:"countLove"` // 点赞数量 |
| 264 | CountComment int `json:"countComment"` // 评论数量 | 264 | CountComment int `json:"countComment"` // 评论数量 |
| 265 | Show int `json:"show"` // 评论的展示状态(0显示、1不显示) | 265 | Show int `json:"show"` // 评论的展示状态(0显示、1不显示) |
| 266 | + AtWho []SimpleUser `json:"atWho"` // @用户 | ||
| 267 | + MatchUrl map[string]string `json:"matchUrl"` // 内容中的url文本 | ||
| 266 | } | 268 | } |
| 267 | 269 | ||
| 268 | 270 |
| @@ -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 |
| @@ -601,11 +601,13 @@ type MyLikeItem struct { | @@ -601,11 +601,13 @@ type MyLikeItem struct { | ||
| 601 | } | 601 | } |
| 602 | 602 | ||
| 603 | type SimpleComment struct { | 603 | type SimpleComment struct { |
| 604 | - Id int64 `json:"id"` | ||
| 605 | - Content string `json:"content"` // 评论内容 | ||
| 606 | - CountLove int `json:"countLove"` // 点赞数量 | ||
| 607 | - CountComment int `json:"countComment"` // 评论数量 | ||
| 608 | - Show int `json:"show"` // 评论的展示状态(0显示、1不显示) | 604 | + Id int64 `json:"id"` |
| 605 | + Content string `json:"content"` // 评论内容 | ||
| 606 | + CountLove int `json:"countLove"` // 点赞数量 | ||
| 607 | + CountComment int `json:"countComment"` // 评论数量 | ||
| 608 | + Show int `json:"show"` // 评论的展示状态(0显示、1不显示) | ||
| 609 | + AtWho []SimpleUser `json:"atWho"` // @用户 | ||
| 610 | + MatchUrl map[string]string `json:"matchUrl"` // 内容中的url文本 | ||
| 609 | } | 611 | } |
| 610 | 612 | ||
| 611 | type MiniBeLikedRequest struct { | 613 | type MiniBeLikedRequest struct { |
-
请 注册 或 登录 后发表评论