docs: 更新登录 Swagger 文档
This commit is contained in:
@@ -11,53 +11,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"Auth"
|
"Auth"
|
||||||
],
|
],
|
||||||
"summary": "登录获取 Token",
|
"summary": "账号名+手机号登录获取 Token",
|
||||||
"requestBody": {
|
|
||||||
"description": "登录请求。",
|
|
||||||
"content": {
|
|
||||||
"application/json-patch+json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/AdminLoginRequest"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/AdminLoginRequest"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"text/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/AdminLoginRequest"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"application/*+json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/AdminLoginRequest"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "OK",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/TokenResponseApiResponse"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/admin/v1/auth/login/simple": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"Auth"
|
|
||||||
],
|
|
||||||
"summary": "免租户号登录(仅账号+密码)。",
|
|
||||||
"description": "用于前端简化登录,无需额外传递租户号。",
|
|
||||||
"requestBody": {
|
"requestBody": {
|
||||||
"description": "登录请求。",
|
"description": "登录请求。",
|
||||||
"content": {
|
"content": {
|
||||||
@@ -8829,16 +8783,22 @@
|
|||||||
},
|
},
|
||||||
"AdminLoginRequest": {
|
"AdminLoginRequest": {
|
||||||
"required": [
|
"required": [
|
||||||
"account",
|
"accountName",
|
||||||
|
"phone",
|
||||||
"password"
|
"password"
|
||||||
],
|
],
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"account": {
|
"accountName": {
|
||||||
"maxLength": 64,
|
"maxLength": 64,
|
||||||
"minLength": 1,
|
"minLength": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"phone": {
|
||||||
|
"maxLength": 32,
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"maxLength": 128,
|
"maxLength": 128,
|
||||||
"minLength": 1,
|
"minLength": 1,
|
||||||
@@ -19251,4 +19211,4 @@
|
|||||||
"description": "用户权限洞察接口。"
|
"description": "用户权限洞察接口。"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user