From 892c84f32a12f10b0b21b74801fd28ccdf248e06 Mon Sep 17 00:00:00 2001 From: Michelle.Chung <1242874891@qq.com> Date: 星期二, 27 六月 2023 09:03:51 +0800 Subject: [PATCH] update 更新字段命名 activityTimeout -> activeTimeout ; update 新增字段设备类型 deviceType ; --- src/api/login.ts | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/src/api/login.ts b/src/api/login.ts index b95a0c0..9903f5b 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -13,7 +13,9 @@ username: data.username.trim(), password: data.password, code: data.code, - uuid: data.uuid + uuid: data.uuid, + clientId: 'e5cd7e4891bf95d1d19206ce24a7b32e', + grantType: 'password' }; return request({ url: '/auth/login', @@ -60,6 +62,22 @@ timeout: 20000 }); } +/** + * 绗笁鏂圭櫥褰� + * @param source 绗笁鏂圭櫥褰曠被鍨� + * */ +export function socialLogin(source: string, code: any, state: any): AxiosPromise<any> { + const data = { + code, + state, + source + }; + return request({ + url: '/auth/social-login', + method: 'get', + params: data + }); +} // 鑾峰彇鐢ㄦ埛璇︾粏淇℃伅 export function getInfo(): AxiosPromise<UserInfo> { -- Gitblit v1.9.3