|
@@ -37,6 +37,7 @@ func (l *SystemEditAticleCommentLogic) SystemEditAticleComment(req *types.System |
|
@@ -37,6 +37,7 @@ func (l *SystemEditAticleCommentLogic) SystemEditAticleComment(req *types.System |
37
|
return nil, xerr.NewErrMsg("没有操作权限")
|
37
|
return nil, xerr.NewErrMsg("没有操作权限")
|
38
|
}
|
38
|
}
|
39
|
commetInfo.CountAdminLove = req.CountAdminLove
|
39
|
commetInfo.CountAdminLove = req.CountAdminLove
|
|
|
40
|
+ commetInfo.Content = req.Content
|
40
|
var increaseCount int
|
41
|
var increaseCount int
|
41
|
switch req.Show {
|
42
|
switch req.Show {
|
42
|
case 1:
|
43
|
case 1:
|
|
@@ -52,7 +53,7 @@ func (l *SystemEditAticleCommentLogic) SystemEditAticleComment(req *types.System |
|
@@ -52,7 +53,7 @@ func (l *SystemEditAticleCommentLogic) SystemEditAticleComment(req *types.System |
52
|
increaseCount = -1
|
53
|
increaseCount = -1
|
53
|
}
|
54
|
}
|
54
|
}
|
55
|
}
|
55
|
- commetInfo.Show = domain.CommentShowEnable
|
56
|
+
|
56
|
// 变更回复数量
|
57
|
// 变更回复数量
|
57
|
err = transaction.UseTrans(l.ctx, conn.DB(), func(ctx context.Context, c transaction.Conn) error {
|
58
|
err = transaction.UseTrans(l.ctx, conn.DB(), func(ctx context.Context, c transaction.Conn) error {
|
58
|
_, err = l.svcCtx.ArticleCommentRepository.Update(ctx, c, commetInfo)
|
59
|
_, err = l.svcCtx.ArticleCommentRepository.Update(ctx, c, commetInfo)
|