init
This commit is contained in:
14
frontend/src/api/auth.ts
Normal file
14
frontend/src/api/auth.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user