// API List // /dashboard/shutdownStatistics/date - GET shutdown统计最新日期 // /dashboard/shutdownStatistics - GET shutdown统计 import http from '@/service/serverReq' import type { ShutdownStatisticsInfo } from './interface' const API_List = { shutdownStatisticsDate: '/dashboard/shutdownStatistics/date', shutdownStatistics: '/dashboard/shutdownStatistics', } // GET shutdown统计最新日期 export const getShutdownStatisticsDate = async (): Promise => { const res = await http.get(API_List.shutdownStatisticsDate) return res } // GET shutdown统计 export const getShutdownStatistics = async (date: string): Promise => { const res = await http.get(API_List.shutdownStatistics, { params: { date }, }) return res }