!20 统一登录授权

* 统一授权登录
* 对接后端更改做了适配,
* 前端实现切换租户选择第三方授权登录,和优化第三方页面登录注册
This commit is contained in:
三个三
2023-07-02 07:29:28 +00:00
committed by 疯狂的狮子Li
parent 226e0f3494
commit a8f575fe6f
22 changed files with 992 additions and 96 deletions

View File

@@ -15,19 +15,24 @@ export type RegisterForm = {
* 登录请求
*/
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;
}
/**