10 lines
304 B
TypeScript
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 },
|
|
});
|
|
}
|