import { defHttp } from '/@/utils/http/axios'; enum Api { list = '/iot/tq/waterMeter/list', eleReset = '/iot/tq/waterMeter/eleReset', eleControl = '/iot/tq/waterMeter/eleControl', eleRead = '/iot/tq/waterMeter/eleRead', getAllMeter = '/iot/tq/common/device/getAllMeter', getAllCollector = '/iot/tq/common/device/getAllCollector', } /** * 电表列表接口 * @param params */ export const list = (params) => defHttp.get({ url: Api.list, params }); /** * 电表清零 * @param params */ export const eleReset = (params?) => defHttp.get({ url: Api.eleReset, params }); /** * 拉合闸 * @param params */ export const eleControl = (params?) => defHttp.get({ url: Api.eleControl, params }); /** * 抄电表 * @param params */ export const eleRead = (params?) => defHttp.get({ url: Api.eleRead, params }); /** * 获取设备信息 * @param params */ export const getAllMeter = (params?) => defHttp.get({ url: Api.getAllMeter, params }); /** * 采集器设备信息 * @param params */ export const getAllCollector = (params?) => defHttp.get({ url: Api.getAllCollector, params });