mirror of https://gitee.com/answerdev/answer.git
版本审核
This commit is contained in:
parent
c08a9c852e
commit
3d532533cc
|
@ -95,6 +95,9 @@ backend:
|
|||
theme:
|
||||
not_found:
|
||||
other: "Theme not found."
|
||||
revision:
|
||||
review_underway:
|
||||
other: "Revision review underway."
|
||||
user:
|
||||
email_or_password_wrong:
|
||||
other: *email_or_password_wrong
|
||||
|
|
|
@ -55,4 +55,5 @@ const (
|
|||
UploadFileSourceUnsupported = "error.upload.source_unsupported"
|
||||
RecommendTagNotExist = "error.tag.recommend_tag_not_found"
|
||||
RecommendTagEnter = "error.tag.recommend_tag_enter"
|
||||
RevisionReviewUnderway = "error.revision.review_underway"
|
||||
)
|
||||
|
|
|
@ -840,5 +840,9 @@ func (qs *QuestionService) CheckCanUpdate(ctx context.Context, req *schema.Check
|
|||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
if existUnreviewed {
|
||||
err = errors.BadRequest(reason.RevisionReviewUnderway)
|
||||
return existUnreviewed, err
|
||||
}
|
||||
return existUnreviewed, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue