mirror of https://gitee.com/answerdev/answer.git
fix(admin): modify the router url
This commit is contained in:
parent
3283e09c9a
commit
10c91f96a3
90
docs/docs.go
90
docs/docs.go
|
@ -1578,6 +1578,52 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/answer/admin/api/user/activation": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "get user activation",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"admin"
|
||||
],
|
||||
"summary": "get user activation",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "user id",
|
||||
"name": "user_id",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/handler.RespBody"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/schema.GetUserActivationResp"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/answer/admin/api/user/password": {
|
||||
"put": {
|
||||
"security": [
|
||||
|
@ -1696,50 +1742,6 @@ const docTemplate = `{
|
|||
}
|
||||
},
|
||||
"/answer/admin/api/users/activation": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "get user activation",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"admin"
|
||||
],
|
||||
"summary": "get user activation",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "user id",
|
||||
"name": "user_id",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/handler.RespBody"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/schema.GetUserActivationResp"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
|
|
|
@ -1566,6 +1566,52 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/answer/admin/api/user/activation": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "get user activation",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"admin"
|
||||
],
|
||||
"summary": "get user activation",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "user id",
|
||||
"name": "user_id",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/handler.RespBody"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/schema.GetUserActivationResp"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/answer/admin/api/user/password": {
|
||||
"put": {
|
||||
"security": [
|
||||
|
@ -1684,50 +1730,6 @@
|
|||
}
|
||||
},
|
||||
"/answer/admin/api/users/activation": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "get user activation",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"admin"
|
||||
],
|
||||
"summary": "get user activation",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "user id",
|
||||
"name": "user_id",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/handler.RespBody"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/schema.GetUserActivationResp"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
|
|
|
@ -3232,6 +3232,32 @@ paths:
|
|||
summary: add user
|
||||
tags:
|
||||
- admin
|
||||
/answer/admin/api/user/activation:
|
||||
get:
|
||||
description: get user activation
|
||||
parameters:
|
||||
- description: user id
|
||||
in: query
|
||||
name: user_id
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/handler.RespBody'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/schema.GetUserActivationResp'
|
||||
type: object
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: get user activation
|
||||
tags:
|
||||
- admin
|
||||
/answer/admin/api/user/password:
|
||||
put:
|
||||
consumes:
|
||||
|
@ -3305,31 +3331,6 @@ paths:
|
|||
tags:
|
||||
- admin
|
||||
/answer/admin/api/users/activation:
|
||||
get:
|
||||
description: get user activation
|
||||
parameters:
|
||||
- description: user id
|
||||
in: query
|
||||
name: user_id
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/handler.RespBody'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/schema.GetUserActivationResp'
|
||||
type: object
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: get user activation
|
||||
tags:
|
||||
- admin
|
||||
post:
|
||||
description: send user activation
|
||||
parameters:
|
||||
|
|
|
@ -144,7 +144,7 @@ func (uc *UserAdminController) GetUserPage(ctx *gin.Context) {
|
|||
// @Produce json
|
||||
// @Param user_id query string true "user id"
|
||||
// @Success 200 {object} handler.RespBody{data=schema.GetUserActivationResp}
|
||||
// @Router /answer/admin/api/users/activation [get]
|
||||
// @Router /answer/admin/api/user/activation [get]
|
||||
func (uc *UserAdminController) GetUserActivation(ctx *gin.Context) {
|
||||
req := &schema.GetUserActivationReq{}
|
||||
if handler.BindAndCheck(ctx, req) {
|
||||
|
|
Loading…
Reference in New Issue