mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-29 04:14:20 +08:00
first commit
This commit is contained in:
15
webapp/packages/supersonic-fe/src/services/login.ts
Normal file
15
webapp/packages/supersonic-fe/src/services/login.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { request } from 'umi';
|
||||
|
||||
export type LoginParamsType = {
|
||||
username: string;
|
||||
password: string;
|
||||
mobile: string;
|
||||
captcha: string;
|
||||
type: string;
|
||||
};
|
||||
|
||||
export async function queryToken(code: string) {
|
||||
return request(`${process.env.API_BASE_URL}user/ioaLoginCallback`, {
|
||||
params: { code },
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user