doc: update swagger doc

This commit is contained in:
LinkinStar 2022-09-28 14:54:54 +08:00
parent 1b464573e1
commit bdf262768e
3 changed files with 105 additions and 3 deletions

View File

@ -884,7 +884,7 @@ const docTemplate = `{
}
},
"/answer/api/v1/answer/list": {
"post": {
"get": {
"security": [
{
"ApiKeyAuth": []
@ -3614,6 +3614,46 @@ const docTemplate = `{
}
}
},
"/answer/api/v1/user/status": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get user status info",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "get user status info",
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/handler.RespBody"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/schema.GetUserResp"
}
}
}
]
}
}
}
}
},
"/answer/api/v1/vote/down": {
"post": {
"security": [

View File

@ -872,7 +872,7 @@
}
},
"/answer/api/v1/answer/list": {
"post": {
"get": {
"security": [
{
"ApiKeyAuth": []
@ -3602,6 +3602,46 @@
}
}
},
"/answer/api/v1/user/status": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get user status info",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "get user status info",
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/handler.RespBody"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/schema.GetUserResp"
}
}
}
]
}
}
}
}
},
"/answer/api/v1/vote/down": {
"post": {
"security": [

View File

@ -1877,7 +1877,7 @@ paths:
tags:
- api-answer
/answer/api/v1/answer/list:
post:
get:
consumes:
- application/json
description: AnswerList <br> <b>order</b> (default or updated)
@ -3529,6 +3529,28 @@ paths:
summary: UserRegisterByEmail
tags:
- User
/answer/api/v1/user/status:
get:
consumes:
- application/json
description: get user status info
produces:
- application/json
responses:
"200":
description: OK
schema:
allOf:
- $ref: '#/definitions/handler.RespBody'
- properties:
data:
$ref: '#/definitions/schema.GetUserResp'
type: object
security:
- ApiKeyAuth: []
summary: get user status info
tags:
- User
/answer/api/v1/vote/down:
post:
consumes: