index.js 455 Bytes
Newer Older
李纪文's avatar
李纪文 committed
1 2 3 4 5 6 7 8 9 10
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({
李纪文's avatar
李纪文 committed
11
    url: `${baseURI}/PandaMonitor/Monitor/Device/EquipmentDataReportByBack`,
李纪文's avatar
李纪文 committed
12 13 14 15
    method: REQUEST_METHOD_POST,
    data,
  });
}