docs: 更新登录 Swagger 文档
This commit is contained in:
@@ -11,53 +11,7 @@
|
||||
"tags": [
|
||||
"Auth"
|
||||
],
|
||||
"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": "用于前端简化登录,无需额外传递租户号。",
|
||||
"summary": "账号名+手机号登录获取 Token",
|
||||
"requestBody": {
|
||||
"description": "登录请求。",
|
||||
"content": {
|
||||
@@ -8829,16 +8783,22 @@
|
||||
},
|
||||
"AdminLoginRequest": {
|
||||
"required": [
|
||||
"account",
|
||||
"accountName",
|
||||
"phone",
|
||||
"password"
|
||||
],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"account": {
|
||||
"accountName": {
|
||||
"maxLength": 64,
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
},
|
||||
"phone": {
|
||||
"maxLength": 32,
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"maxLength": 128,
|
||||
"minLength": 1,
|
||||
@@ -19251,4 +19211,4 @@
|
||||
"description": "用户权限洞察接口。"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user