...
|
...
|
@@ -2,6 +2,7 @@ package article |
|
|
|
|
|
import (
|
|
|
"context"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/logic/message"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss/cmd/discuss/api/internal/svc"
|
...
|
...
|
@@ -249,6 +250,7 @@ func (l *MiniSetUserLikeLogic) setUserLikeArticle(req *types.MiniSetUserLikeRequ |
|
|
CommentId: 0,
|
|
|
CommentAuthor: 0,
|
|
|
UserId: req.UserId,
|
|
|
ToUserId: articleInfo.AuthorId,
|
|
|
}
|
|
|
// 添加点赞标识
|
|
|
_, err = l.svcCtx.UserLoveFlagRepository.Insert(ctx, c, &flagInfo)
|
...
|
...
|
@@ -338,6 +340,7 @@ func (l *MiniSetUserLikeLogic) setUserLikeComment(req *types.MiniSetUserLikeRequ |
|
|
CommentId: req.CommentId,
|
|
|
CommentAuthor: commentInfo.FromUserId,
|
|
|
UserId: req.UserId,
|
|
|
ToUserId: commentInfo.FromUserId,
|
|
|
}
|
|
|
// 设置赞标识
|
|
|
_, err = l.svcCtx.UserLoveFlagRepository.Insert(ctx, c, &flagInfo)
|
...
|
...
|
|