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