You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
637 B
TypeScript

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'
});
}