mirror of https://gitee.com/answerdev/answer.git
swagger
This commit is contained in:
parent
08482d270c
commit
84206b85a1
43
docs/docs.go
43
docs/docs.go
|
@ -4677,6 +4677,46 @@ const docTemplate = `{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/answer/api/v1/user/ranking": {
|
||||||
|
"get": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"ApiKeyAuth": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "get user ranking",
|
||||||
|
"consumes": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"User"
|
||||||
|
],
|
||||||
|
"summary": "get user ranking",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/handler.RespBody"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"$ref": "#/definitions/schema.GetUserToSetShowResp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/answer/api/v1/user/register/email": {
|
"/answer/api/v1/user/register/email": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "UserRegisterByEmail",
|
"description": "UserRegisterByEmail",
|
||||||
|
@ -6904,6 +6944,9 @@ const docTemplate = `{
|
||||||
"branding": {
|
"branding": {
|
||||||
"$ref": "#/definitions/schema.SiteBrandingResp"
|
"$ref": "#/definitions/schema.SiteBrandingResp"
|
||||||
},
|
},
|
||||||
|
"custom_css_html": {
|
||||||
|
"$ref": "#/definitions/schema.SiteCustomCssHTMLResp"
|
||||||
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"$ref": "#/definitions/schema.SiteGeneralResp"
|
"$ref": "#/definitions/schema.SiteGeneralResp"
|
||||||
},
|
},
|
||||||
|
|
|
@ -4665,6 +4665,46 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/answer/api/v1/user/ranking": {
|
||||||
|
"get": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"ApiKeyAuth": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "get user ranking",
|
||||||
|
"consumes": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"User"
|
||||||
|
],
|
||||||
|
"summary": "get user ranking",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/handler.RespBody"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"$ref": "#/definitions/schema.GetUserToSetShowResp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/answer/api/v1/user/register/email": {
|
"/answer/api/v1/user/register/email": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "UserRegisterByEmail",
|
"description": "UserRegisterByEmail",
|
||||||
|
@ -6892,6 +6932,9 @@
|
||||||
"branding": {
|
"branding": {
|
||||||
"$ref": "#/definitions/schema.SiteBrandingResp"
|
"$ref": "#/definitions/schema.SiteBrandingResp"
|
||||||
},
|
},
|
||||||
|
"custom_css_html": {
|
||||||
|
"$ref": "#/definitions/schema.SiteCustomCssHTMLResp"
|
||||||
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"$ref": "#/definitions/schema.SiteGeneralResp"
|
"$ref": "#/definitions/schema.SiteGeneralResp"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1294,6 +1294,8 @@ definitions:
|
||||||
properties:
|
properties:
|
||||||
branding:
|
branding:
|
||||||
$ref: '#/definitions/schema.SiteBrandingResp'
|
$ref: '#/definitions/schema.SiteBrandingResp'
|
||||||
|
custom_css_html:
|
||||||
|
$ref: '#/definitions/schema.SiteCustomCssHTMLResp'
|
||||||
general:
|
general:
|
||||||
$ref: '#/definitions/schema.SiteGeneralResp'
|
$ref: '#/definitions/schema.SiteGeneralResp'
|
||||||
interface:
|
interface:
|
||||||
|
@ -4670,6 +4672,28 @@ paths:
|
||||||
summary: RetrievePassWord
|
summary: RetrievePassWord
|
||||||
tags:
|
tags:
|
||||||
- User
|
- User
|
||||||
|
/answer/api/v1/user/ranking:
|
||||||
|
get:
|
||||||
|
consumes:
|
||||||
|
- application/json
|
||||||
|
description: get user ranking
|
||||||
|
produces:
|
||||||
|
- application/json
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: OK
|
||||||
|
schema:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/definitions/handler.RespBody'
|
||||||
|
- properties:
|
||||||
|
data:
|
||||||
|
$ref: '#/definitions/schema.GetUserToSetShowResp'
|
||||||
|
type: object
|
||||||
|
security:
|
||||||
|
- ApiKeyAuth: []
|
||||||
|
summary: get user ranking
|
||||||
|
tags:
|
||||||
|
- User
|
||||||
/answer/api/v1/user/register/email:
|
/answer/api/v1/user/register/email:
|
||||||
post:
|
post:
|
||||||
consumes:
|
consumes:
|
||||||
|
|
Loading…
Reference in New Issue