From 2f508d7b52f849b14e98fd0a7e564edc35a5b684 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 30 Jan 2026 07:09:01 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E7=99=BB=E5=BD=95=20?= =?UTF-8?q?Swagger=20=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Document/swagger/swagger20251215095917.json | 60 ++++----------------- 1 file changed, 10 insertions(+), 50 deletions(-) diff --git a/Document/swagger/swagger20251215095917.json b/Document/swagger/swagger20251215095917.json index d1efe82..0f1f67d 100644 --- a/Document/swagger/swagger20251215095917.json +++ b/Document/swagger/swagger20251215095917.json @@ -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": "用户权限洞察接口。" } ] -} \ No newline at end of file +}