up api docs
This commit is contained in:
@@ -3569,7 +3569,7 @@ const docTemplateadmin = `{
|
|||||||
"token": []
|
"token": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "登录凭证删除",
|
"description": "登录凭证批量删除",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@@ -3579,7 +3579,7 @@ const docTemplateadmin = `{
|
|||||||
"tags": [
|
"tags": [
|
||||||
"登录凭证"
|
"登录凭证"
|
||||||
],
|
],
|
||||||
"summary": "登录凭证删除",
|
"summary": "登录凭证批量删除",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"description": "登录凭证信息",
|
"description": "登录凭证信息",
|
||||||
@@ -3587,7 +3587,7 @@ const docTemplateadmin = `{
|
|||||||
"in": "body",
|
"in": "body",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/model.UserToken"
|
"$ref": "#/definitions/admin.UserTokenBatchDeleteForm"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3798,12 +3798,12 @@ const docTemplateadmin = `{
|
|||||||
"properties": {
|
"properties": {
|
||||||
"new_password": {
|
"new_password": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 20,
|
"maxLength": 32,
|
||||||
"minLength": 4
|
"minLength": 4
|
||||||
},
|
},
|
||||||
"old_password": {
|
"old_password": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 20,
|
"maxLength": 32,
|
||||||
"minLength": 4
|
"minLength": 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4038,7 +4038,7 @@ const docTemplateadmin = `{
|
|||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 10,
|
"maxLength": 32,
|
||||||
"minLength": 2
|
"minLength": 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4066,11 +4066,25 @@ const docTemplateadmin = `{
|
|||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 20,
|
"maxLength": 32,
|
||||||
"minLength": 4
|
"minLength": 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"admin.UserTokenBatchDeleteForm": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"ids"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"ids": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"model.AddressBook": {
|
"model.AddressBook": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
@@ -3562,7 +3562,7 @@
|
|||||||
"token": []
|
"token": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "登录凭证删除",
|
"description": "登录凭证批量删除",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@@ -3572,7 +3572,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"登录凭证"
|
"登录凭证"
|
||||||
],
|
],
|
||||||
"summary": "登录凭证删除",
|
"summary": "登录凭证批量删除",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"description": "登录凭证信息",
|
"description": "登录凭证信息",
|
||||||
@@ -3580,7 +3580,7 @@
|
|||||||
"in": "body",
|
"in": "body",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/model.UserToken"
|
"$ref": "#/definitions/admin.UserTokenBatchDeleteForm"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3791,12 +3791,12 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"new_password": {
|
"new_password": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 20,
|
"maxLength": 32,
|
||||||
"minLength": 4
|
"minLength": 4
|
||||||
},
|
},
|
||||||
"old_password": {
|
"old_password": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 20,
|
"maxLength": 32,
|
||||||
"minLength": 4
|
"minLength": 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4031,7 +4031,7 @@
|
|||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 10,
|
"maxLength": 32,
|
||||||
"minLength": 2
|
"minLength": 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4059,11 +4059,25 @@
|
|||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 20,
|
"maxLength": 32,
|
||||||
"minLength": 4
|
"minLength": 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"admin.UserTokenBatchDeleteForm": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"ids"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"ids": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"model.AddressBook": {
|
"model.AddressBook": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
@@ -78,11 +78,11 @@ definitions:
|
|||||||
admin.ChangeCurPasswordForm:
|
admin.ChangeCurPasswordForm:
|
||||||
properties:
|
properties:
|
||||||
new_password:
|
new_password:
|
||||||
maxLength: 20
|
maxLength: 32
|
||||||
minLength: 4
|
minLength: 4
|
||||||
type: string
|
type: string
|
||||||
old_password:
|
old_password:
|
||||||
maxLength: 20
|
maxLength: 32
|
||||||
minLength: 4
|
minLength: 4
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
@@ -238,7 +238,7 @@ definitions:
|
|||||||
- $ref: '#/definitions/model.StatusCode'
|
- $ref: '#/definitions/model.StatusCode'
|
||||||
minimum: 0
|
minimum: 0
|
||||||
username:
|
username:
|
||||||
maxLength: 10
|
maxLength: 32
|
||||||
minLength: 2
|
minLength: 2
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
@@ -258,13 +258,22 @@ definitions:
|
|||||||
id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
password:
|
password:
|
||||||
maxLength: 20
|
maxLength: 32
|
||||||
minLength: 4
|
minLength: 4
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
- password
|
- password
|
||||||
type: object
|
type: object
|
||||||
|
admin.UserTokenBatchDeleteForm:
|
||||||
|
properties:
|
||||||
|
ids:
|
||||||
|
items:
|
||||||
|
type: integer
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- ids
|
||||||
|
type: object
|
||||||
model.AddressBook:
|
model.AddressBook:
|
||||||
properties:
|
properties:
|
||||||
alias:
|
alias:
|
||||||
@@ -2871,14 +2880,14 @@ paths:
|
|||||||
post:
|
post:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
description: 登录凭证删除
|
description: 登录凭证批量删除
|
||||||
parameters:
|
parameters:
|
||||||
- description: 登录凭证信息
|
- description: 登录凭证信息
|
||||||
in: body
|
in: body
|
||||||
name: body
|
name: body
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/model.UserToken'
|
$ref: '#/definitions/admin.UserTokenBatchDeleteForm'
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
@@ -2892,7 +2901,7 @@ paths:
|
|||||||
$ref: '#/definitions/response.Response'
|
$ref: '#/definitions/response.Response'
|
||||||
security:
|
security:
|
||||||
- token: []
|
- token: []
|
||||||
summary: 登录凭证删除
|
summary: 登录凭证批量删除
|
||||||
tags:
|
tags:
|
||||||
- 登录凭证
|
- 登录凭证
|
||||||
/admin/user_token/list:
|
/admin/user_token/list:
|
||||||
|
|||||||
@@ -1356,7 +1356,7 @@ const docTemplateapi = `{
|
|||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 20,
|
"maxLength": 32,
|
||||||
"minLength": 4
|
"minLength": 4
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
@@ -1364,7 +1364,7 @@ const docTemplateapi = `{
|
|||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 10,
|
"maxLength": 32,
|
||||||
"minLength": 2
|
"minLength": 2
|
||||||
},
|
},
|
||||||
"uuid": {
|
"uuid": {
|
||||||
|
|||||||
@@ -1349,7 +1349,7 @@
|
|||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 20,
|
"maxLength": 32,
|
||||||
"minLength": 4
|
"minLength": 4
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
@@ -1357,7 +1357,7 @@
|
|||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 10,
|
"maxLength": 32,
|
||||||
"minLength": 2
|
"minLength": 2
|
||||||
},
|
},
|
||||||
"uuid": {
|
"uuid": {
|
||||||
|
|||||||
@@ -62,13 +62,13 @@ definitions:
|
|||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
password:
|
password:
|
||||||
maxLength: 20
|
maxLength: 32
|
||||||
minLength: 4
|
minLength: 4
|
||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
username:
|
username:
|
||||||
maxLength: 10
|
maxLength: 32
|
||||||
minLength: 2
|
minLength: 2
|
||||||
type: string
|
type: string
|
||||||
uuid:
|
uuid:
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ func (i *WebClient) SharedPeer(c *gin.Context) {
|
|||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} response.Response
|
// @Success 200 {object} response.Response
|
||||||
// @Failure 500 {object} response.Response
|
// @Failure 500 {object} response.Response
|
||||||
// @Router /server-config [get]
|
// @Router /server-config-v2 [get]
|
||||||
// @Security token
|
// @Security token
|
||||||
func (i *WebClient) ServerConfigV2(c *gin.Context) {
|
func (i *WebClient) ServerConfigV2(c *gin.Context) {
|
||||||
response.Success(
|
response.Success(
|
||||||
|
|||||||
Reference in New Issue
Block a user