index.js 423 Bytes
Newer Older
李纪文's avatar
李纪文 committed
1
import { request } from '@wisdom-utils/utils';
2 3 4 5 6 7 8 9 10 11 12 13 14

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 getEquipmentInfo(data) {
  return request({
    url: `${baseURI}/PandaMonitor/Monitor/Device/GetEquipmentInfo`,
    method: REQUEST_METHOD_POST,
    data,
  });
}