2026-09-04 10:22:37 +08:00

10 lines
304 B
TypeScript

import { http } from "@/api/http";
import type { ApiResponse } from "@/types/api";
import type { DashboardData, DashboardYear } from "@/types/dashboard";
export function fetchDashboard(year: DashboardYear) {
return http.get<ApiResponse<DashboardData>>("/v1/dashboard", {
params: { year },
});
}