hldy_yunwei_vue/src/views/iotsync/tq/water/water.api.ts

50 lines
1.3 KiB
TypeScript
Raw Normal View History

2025-07-30 17:36:48 +08:00
import { defHttp } from '/@/utils/http/axios';
enum Api {
sourceList = '/iot/tq/waterMeter/sourceList',
departList = '/iot/tq/waterMeter/departList',
nuList = '/iot/tq/waterMeter/nuList',
businessList = '/iot/tq/waterMeter/businessList',
2025-08-05 11:15:47 +08:00
nuSyncList = '/iot/tq/waterMeter/nuSyncList',
2025-07-30 17:36:48 +08:00
syncDevices = '/iot/tq/waterMeter/syncDevices',
syncLogList = '/iot/tq/waterMeter/syncLogList',
}
/**
*
* @param params
*/
export const sourceListApi = (params) => defHttp.get({ url: Api.sourceList, params });
/**
*
* @param params
*/
export const departListApi = (params) => defHttp.get({ url: Api.departList, params });
/**
*
* @param params
*/
export const nuListApi = (params) => defHttp.get({ url: Api.nuList, params });
/**
*
* @param params
*/
export const businessListApi = (params) => defHttp.get({ url: Api.businessList, params });
/**
*
* @param params
*/
export const nuSyncListApi = (params) => defHttp.get({ url: Api.nuSyncList, params });
/**
*
* @param params
*/
export const syncDevicesApi = (params) => {
return defHttp.post({ url: Api.syncDevices, params });
}
/**
*
* @param params
*/
export const syncLogListApi = (params) => defHttp.get({ url: Api.syncLogList, params });