import request from '@/utils/request'; /** * 首页统计数据类型(轻量级,不涉及分表数据) */ export interface HomeStatsVO { locationStats: LocationStats; locations: LocationItem[]; } export interface LocationStats { totalLocations: number; workshopCount: number; processCount: number; stationCount: number; } export interface LocationItem { id: number; locationCode: string; locationAlias: string; locationType: string; childCount: number; } /** * 获取首页统计数据 */ export function getHomeStats() { return request({ url: '/rfid/statistics/home', method: 'get' }); }