From a8f575fe6f4440ca62bb2ad850bbc0baf77ded5d Mon Sep 17 00:00:00 2001
From: 三个三 <2029364173@qq.com>
Date: 星期日, 02 七月 2023 15:29:28 +0800
Subject: [PATCH] !20 统一登录授权 * 统一授权登录 * 对接后端更改做了适配, * 前端实现切换租户选择第三方授权登录,和优化第三方页面登录注册

---
 src/api/types.ts |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/api/types.ts b/src/api/types.ts
index 68fb427..e02e645 100644
--- a/src/api/types.ts
+++ b/src/api/types.ts
@@ -15,19 +15,24 @@
  * 鐧诲綍璇锋眰
  */
 export interface LoginData {
-  tenantId: string;
-  username: string;
-  password: string;
+  tenantId?: string;
+  username?: string;
+  password?: string;
   rememberMe?: boolean;
+  socialCode?: string,
+  socialState?: string,
+  source?: string,
   code?: string;
   uuid?: string;
+  clientId: string;
+  grantType: string;
 }
 
 /**
  * 鐧诲綍鍝嶅簲
  */
 export interface LoginResult {
-  token: string;
+  access_token: string;
 }
 
 /**

--
Gitblit v1.9.3