mirror of https://gitee.com/answerdev/answer.git
fix answer list
This commit is contained in:
parent
2f33d000a1
commit
fea5ff5fde
|
@ -194,7 +194,9 @@ func (ac *AnswerController) AnswerList(ctx *gin.Context) {
|
|||
}
|
||||
req.LoginUserID = middleware.GetLoginUserIDFromContext(ctx)
|
||||
userinfo := middleware.GetUserInfoFromContext(ctx)
|
||||
req.IsAdmin = userinfo.IsAdmin
|
||||
if userinfo != nil {
|
||||
req.IsAdmin = userinfo.IsAdmin
|
||||
}
|
||||
list, count, err := ac.answerService.SearchList(ctx, req)
|
||||
if err != nil {
|
||||
handler.HandleResponse(ctx, err, nil)
|
||||
|
|
|
@ -54,6 +54,11 @@ func (rs *RevisionService) RevisionAudit(ctx context.Context, req *schema.Revisi
|
|||
err = rs.revisionRepo.UpdateStatus(ctx, req.ID, entity.RevisionReviewRejectStatus)
|
||||
return
|
||||
}
|
||||
if req.Operation == schema.RevisionAuditApprove {
|
||||
// revisioninfo.Status = entity.RevisionReviewRejectStatus
|
||||
// err = rs.revisionRepo.UpdateStatus(ctx, req.ID, entity.RevisionReviewRejectStatus)
|
||||
return
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue