import { get } from '@/utils/request'
import type { IBaseResponse, DashboardStatsDTO } from '@/types'

// 获取仪表盘统计数据
export function getDashboardStats(): Promise<IBaseResponse<DashboardStatsDTO>> {
  return get('/admin/stats/dashboard')
}

// 兼容旧代码的类型导出
export type { DashboardStatsDTO }
