import { defHttp } from '/@/utils/http/axios';

enum Api {
  getGoafHistory = '/province/device/getGoafHistory',
  getGoafList = '/province/device/getGoafList'
}

//查询采空区数据列表
export const getGoafList = (params) =>
  defHttp.post({url: Api.getGoafList,params}, { joinParamsToUrl: true });
//查询采空区历史数据列表
export const getGoafHistory = (params) =>
  defHttp.get({
    url: Api.getGoafHistory,
    params,
  });
