import { defHttp } from '/@/utils/http/axios'; enum Api { orgList = '/iot/manager/org/list', areaList = '/iot/manager/area/list', deviceList = '/iot/manager/device/list', canAddList = '/iot/manager/device/canAddList', addBatch = '/iot/manager/device/addBatch', unbindOrg = '/iot/manager/device/unbindOrg', logList = '/iot/manager/log/list', } /** * 列表接口 * @param params */ export const orgList = (params) => defHttp.get({ url: Api.orgList, params }); /** * 列表接口 * @param params */ export const areaList = (params) => defHttp.get({ url: Api.areaList, params }); /** * 列表接口 * @param params */ export const deviceList = (params) => defHttp.get({ url: Api.deviceList, params }); /** * 列表接口 * @param params */ export const canAddList = (params) => defHttp.get({ url: Api.canAddList, params }); /** * 添加 * @param params */ export const addBatch = (params) => defHttp.post({ url: Api.addBatch, params }, { joinParamsToUrl: true }); /** * 机构解绑 */ export const unbindOrg = (params) => defHttp.post({ url: Api.unbindOrg, params }); /** * 列表接口 * @param params */ export const logList = (params) => defHttp.get({ url: Api.logList, params });