35 lines
741 B
TypeScript
35 lines
741 B
TypeScript
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
enum Api {
|
|
list = '/iot/weihu/deviceMaintain/list',
|
|
saveSendOrg = '/iot/weihu/deviceMaintain/saveSendOrg',
|
|
departlist = '/iot/weihu/deviceMaintain/departlist',
|
|
nulist = '/iot/weihu/deviceMaintain/nulist',
|
|
}
|
|
|
|
/**
|
|
* 接口
|
|
* @param params
|
|
*/
|
|
export const list = (params) => defHttp.get({ url: Api.list, params });
|
|
|
|
/**
|
|
* 保存
|
|
* @param params
|
|
*/
|
|
export const saveSendOrg = (params) => {
|
|
return defHttp.post({ url: Api.saveSendOrg, params });
|
|
};
|
|
|
|
/**
|
|
* 接口
|
|
* @param params
|
|
*/
|
|
export const departlist = (params) => defHttp.get({ url: Api.departlist, params });
|
|
|
|
/**
|
|
* 接口
|
|
* @param params
|
|
*/
|
|
export const nulist = (params) => defHttp.get({ url: Api.nulist, params });
|