import { request } from '@wisdom-utils/utils';

const REQUEST_METHOD_GET = 'get';
const REQUEST_METHOD_POST = 'post';
// eslint-disable-next-line no-undef
const baseURI = typeof DUMI_TYPE !== 'undefined' && DUMI_TYPE === 'dumi' ? '/api' : '';

// 获取统计数据
export function getStatisticsInfo(data) {
  return request({
    url: `${baseURI}/PandaMonitor/Monitor/Device/EquipmentDataReportByBack`,
    method: REQUEST_METHOD_POST,
    data,
  });
}