Files
K12Study/frontend/src/api/auth.ts

15 lines
383 B
TypeScript
Raw Normal View History

2026-04-14 16:27:47 +08:00
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);
}