mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 22:25:19 +00:00
16 lines
297 B
TypeScript
16 lines
297 B
TypeScript
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(`/davinciapi/login/tmeloginCallback`, {
|
|
params: { code },
|
|
});
|
|
}
|