作者 tangxvhui

Merge branch 'dev' into test

@@ -365,6 +365,7 @@ type ( @@ -365,6 +365,7 @@ type (
365 CompanyId int64 `json:",optional"` 365 CompanyId int64 `json:",optional"`
366 Id int64 `json:"id"` 366 Id int64 `json:"id"`
367 Show int `json:"show"` //[1 显示评论] [2: 隐藏评论] 367 Show int `json:"show"` //[1 显示评论] [2: 隐藏评论]
  368 + Content string `json:"content,optional"`
368 CountAdminLove int `json:"countAdminLove,optional"` 369 CountAdminLove int `json:"countAdminLove,optional"`
369 } 370 }
370 371
@@ -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)
@@ -268,6 +268,7 @@ type SystemEditCommentRequest struct { @@ -268,6 +268,7 @@ type SystemEditCommentRequest struct {
268 CompanyId int64 `json:",optional"` 268 CompanyId int64 `json:",optional"`
269 Id int64 `json:"id"` 269 Id int64 `json:"id"`
270 Show int `json:"show"` //[1 显示评论] [2: 隐藏评论] 270 Show int `json:"show"` //[1 显示评论] [2: 隐藏评论]
  271 + Content string `json:"content,optional"`
271 CountAdminLove int `json:"countAdminLove,optional"` 272 CountAdminLove int `json:"countAdminLove,optional"`
272 } 273 }
273 274