1234567891011121314151617181920212223242526272829 |
- import { defHttp } from '/@/utils/http/axios';
- enum Api {
- edit = '/safety/ventanalyDeviceInfo/edit',
- list = '/safety/ventanalyDeviceInfo/list',
- input = '/safety/ventanalyDeviceInfo/input',
- sysList = '/safety/ventanalyManageSystem/list',
- sysInput = '/safety/ventanalyManageSystem/input',
- getInfo = '/safety/reportLocalData/queryReportData',
- getFileList = '/safety/reportLocalData/list',
- }
- /**
- * 列表接口
- * @param params
- */
- export const list = (params) => defHttp.get({ url: Api.list, params });
- /**
- * 保存或者更新用户
- * @param params
- */
- export const updateDeviceInfo = (params) => defHttp.put({ url: Api.edit, params });
- export const updateReportInfo = (params) => defHttp.put({ url: Api.input, params });
- export const sysList = (params) => defHttp.get({ url: Api.sysList, params });
- export const sysInput = (params) => defHttp.put({ url: Api.sysInput, params });
- export const getInfoList = (params) => defHttp.post({ url: Api.getInfo, params });
- export const getAllFileList = (params) => defHttp.get({ url: Api.getFileList, params });
|