47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
enum Api {
|
|
list = '/iot/tq/waterMeter/list',
|
|
waterReset = '/iot/tq/waterMeter/waterReset',
|
|
waterControl = '/iot/tq/waterMeter/waterControl',
|
|
waterRead = '/iot/tq/waterMeter/waterRead',
|
|
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 waterReset = (params?) => defHttp.get({ url: Api.waterReset, params });
|
|
|
|
/**
|
|
* 开关闸
|
|
* @param params
|
|
*/
|
|
export const waterControl = (params?) => defHttp.get({ url: Api.waterControl, params });
|
|
|
|
/**
|
|
* 抄电表
|
|
* @param params
|
|
*/
|
|
export const waterRead = (params?) => defHttp.get({ url: Api.waterRead, 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 });
|