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>("/v1/dashboard", { params: { year }, }); }