import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { WcsLocationUtilizationVO, WcsReportQuery, WcsTaskStatVO } from './types';

export const getTaskStat = (query?: WcsReportQuery): AxiosPromise<WcsTaskStatVO> => {
  return request({ url: '/wcs/report/taskStat', method: 'get', params: query });
};

export const getLocationUtilization = (query?: WcsReportQuery): AxiosPromise<WcsLocationUtilizationVO[]> => {
  return request({ url: '/wcs/report/locationUtilization', method: 'get', params: query });
};
