This commit is contained in:
2026-04-14 16:27:47 +08:00
commit 4b38a4c952
134 changed files with 7478 additions and 0 deletions

14
frontend/src/api/auth.ts Normal file
View 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);
}