32 lines
973 B
TypeScript
32 lines
973 B
TypeScript
|
|
import { defHttp } from '/@/utils/http/axios';
|
||
|
|
|
||
|
|
enum Api {
|
||
|
|
departPreview = '/iot/device/manager/departPreview',
|
||
|
|
nuPreview = '/iot/device/manager/nuPreview',
|
||
|
|
configList = '/iot/device/config/queryList',
|
||
|
|
nuList = '/iot/device/manager/nuList',
|
||
|
|
savePreview = '/iot/device/manager/savePreview',
|
||
|
|
deletePreview = '/iot/device/manager/deletePreview',
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 列表
|
||
|
|
* @param params
|
||
|
|
*/
|
||
|
|
export const departPreview = (params) => defHttp.get({ url: Api.departPreview, params });
|
||
|
|
export const nuPreview = (params) => defHttp.get({ url: Api.nuPreview, params });
|
||
|
|
export const configList = (params) => defHttp.get({ url: Api.configList, params });
|
||
|
|
export const nuList = (params) => defHttp.get({ url: Api.nuList, params });
|
||
|
|
/**
|
||
|
|
* 新增机构
|
||
|
|
* @param id
|
||
|
|
*/
|
||
|
|
export const savePreview = (params) => defHttp.post({ url: Api.savePreview, params });
|
||
|
|
/**
|
||
|
|
* 删除
|
||
|
|
* @param id
|
||
|
|
*/
|
||
|
|
export const deletePreview = (params) => defHttp.post({ url: Api.deletePreview, params });
|
||
|
|
|
||
|
|
|