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

enum Api {
  getCoalSeamFireNum = '/province/homeData/getCoalSeamFireNum',
  getMineProductionStatusNum  = '/province/homeData/getMineProductionStatusNum',
  getOverLimitNum = '/province/homeData/getOverLimitNum',
  getGoafAlarmNum = '/province/homeData/getGoafAlarmNum',
  getGoafAlarmLevel = '/province/homeData/getGoafAlarmLevel',

//   getCoalSeamFireNum = '/datahome/province/homeData/getCoalSeamFireNum',
//   getMineProductionStatusNum  = '/datahome/province/homeData/getMineProductionStatusNum',
//   getOverLimitNum = '/datahome/province/homeData/getOverLimitNum',
//   getGoafAlarmNum = '/datahome/province/homeData/getGoafAlarmNum',
//   getGoafAlarmLevel = '/datahome/province/homeData/getGoafAlarmLevel',
}

// 查询煤层自燃倾向数量统计
export const getCoalSeamFireNum = () =>
  defHttp.post({
    url: Api.getCoalSeamFireNum,
  });

// 查询矿井生成状态统计
export const getMineProductionStatusNum = () =>
  defHttp.post({
    url: Api.getMineProductionStatusNum,
  });

// 查询采空区超限数量统计
export const getOverLimitNum = () =>
  defHttp.post({
    url: Api.getOverLimitNum,
  });

// 执法处风险统计
export const getGoafAlarmNum = (params) =>
  defHttp.post({
    url: Api.getGoafAlarmNum,
    params
  });

// 根据矿编码查询矿下采空区风险等级
export const getGoafAlarmLevel = (params) =>
  defHttp.post({
    url: Api.getGoafAlarmLevel,
    params
  });