A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
swagger
aichy12645bf3e4a459d
diff --git a/docs/docs.go b/docs/docs.goindex c5da1549..936f0c5c 100644--- a/docs/docs.go+++ b/docs/docs.go@@ -2575,44 +2575,6 @@ const docTemplate = `{}}},- "/answer/api/v1/question/edit/check": {- "get": {- "security": [- {- "ApiKeyAuth": []- }- ],- "description": "check can update question",- "consumes": [- "application/json"- ],- "produces": [- "application/json"- ],- "tags": [- "api-question"- ],- "summary": "check can update question",- "parameters": [- {- "type": "string",- "default": "string",- "description": "id",- "name": "id",- "in": "query",- "required": true- }- ],- "responses": {- "200": {- "description": "OK",- "schema": {- "$ref": "#/definitions/handler.RespBody"- }- }- }- }- },"/answer/api/v1/question/info": {"get": {"security": [@@ -3105,6 +3067,44 @@ const docTemplate = `{}}},+ "/answer/api/v1/revisions/edit/check": {+ "get": {+ "security": [+ {+ "ApiKeyAuth": []+ }+ ],+ "description": "check can update question",+ "consumes": [+ "application/json"+ ],+ "produces": [+ "application/json"+ ],+ "tags": [+ "Revision"+ ],+ "summary": "check can update question",+ "parameters": [+ {+ "type": "string",+ "default": "string",+ "description": "id",+ "name": "id",+ "in": "query",+ "required": true+ }+ ],+ "responses": {+ "200": {+ "description": "OK",+ "schema": {+ "$ref": "#/definitions/handler.RespBody"+ }+ }+ }+ }+ },"/answer/api/v1/revisions/unreviewed": {"get": {"security": [diff --git a/docs/swagger.json b/docs/swagger.jsonindex 9fc0b02c..c0182ab4 100644--- a/docs/swagger.json+++ b/docs/swagger.json@@ -2563,44 +2563,6 @@}}},- "/answer/api/v1/question/edit/check": {- "get": {- "security": [- {- "ApiKeyAuth": []- }- ],- "description": "check can update question",- "consumes": [- "application/json"- ],- "produces": [- "application/json"- ],- "tags": [- "api-question"- ],- "summary": "check can update question",- "parameters": [- {- "type": "string",- "default": "string",- "description": "id",- "name": "id",- "in": "query",- "required": true- }- ],- "responses": {- "200": {- "description": "OK",- "schema": {- "$ref": "#/definitions/handler.RespBody"- }- }- }- }- },"/answer/api/v1/question/info": {"get": {"security": [@@ -3093,6 +3055,44 @@}}},+ "/answer/api/v1/revisions/edit/check": {+ "get": {+ "security": [+ {+ "ApiKeyAuth": []+ }+ ],+ "description": "check can update question",+ "consumes": [+ "application/json"+ ],+ "produces": [+ "application/json"+ ],+ "tags": [+ "Revision"+ ],+ "summary": "check can update question",+ "parameters": [+ {+ "type": "string",+ "default": "string",+ "description": "id",+ "name": "id",+ "in": "query",+ "required": true+ }+ ],+ "responses": {+ "200": {+ "description": "OK",+ "schema": {+ "$ref": "#/definitions/handler.RespBody"+ }+ }+ }+ }+ },"/answer/api/v1/revisions/unreviewed": {"get": {"security": [diff --git a/docs/swagger.yaml b/docs/swagger.yamlindex 51439b21..842c9b4f 100644--- a/docs/swagger.yaml+++ b/docs/swagger.yaml@@ -3197,30 +3197,6 @@ paths:summary: close question msg listtags:- api-question- /answer/api/v1/question/edit/check:- get:- consumes:- - application/json- description: check can update question- parameters:- - default: string- description: id- in: query- name: id- required: true- type: string- produces:- - application/json- responses:- "200":- description: OK- schema:- $ref: '#/definitions/handler.RespBody'- security:- - ApiKeyAuth: []- summary: check can update question- tags:- - api-question/answer/api/v1/question/info:get:consumes:@@ -3528,6 +3504,30 @@ paths:summary: revision audittags:- Revision+ /answer/api/v1/revisions/edit/check:+ get:+ consumes:+ - application/json+ description: check can update question+ parameters:+ - default: string+ description: id+ in: query+ name: id+ required: true+ type: string+ produces:+ - application/json+ responses:+ "200":+ description: OK+ schema:+ $ref: '#/definitions/handler.RespBody'+ security:+ - ApiKeyAuth: []+ summary: check can update question+ tags:+ - Revision/answer/api/v1/revisions/unreviewed:get:description: get unreviewed revision listdiff --git a/internal/controller/question_controller.go b/internal/controller/question_controller.goindex 1ea03644..863a5b2e 100644--- a/internal/controller/question_controller.go+++ b/internal/controller/question_controller.go@@ -228,7 +228,7 @@ func (qc *QuestionController) UpdateQuestion(ctx *gin.Context) {// CheckCanUpdateQuestion check can update question// @Summary check can update question// @Description check can update question-// @Tags api-question+// @Tags Revision// @Accept json// @Produce json// @Security ApiKeyAuth