15 lines
383 B
TypeScript
15 lines
383 B
TypeScript
|
|
import type { ApiResponse } from "../types/api";
|
||
|
|
import { http } from "../utils/http";
|
||
|
|
|
||
|
|
interface LoginInput {
|
||
|
|
username: string;
|
||
|
|
password: string;
|
||
|
|
provinceCode: string;
|
||
|
|
areaCode: string;
|
||
|
|
tenantId: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function login(input: LoginInput) {
|
||
|
|
return http.post<ApiResponse<{ accessToken: string; refreshToken: string }>>("/auth/login", input);
|
||
|
|
}
|