import { defHttp } from '/@/utils/http/axios'; enum Api { getCameraDevKind='/safety/ventanalyCamera/getCameraDevKind', list = '/safety/ventanalyCamera/listNew', getCameraUrl = '/ventanaly-device/camera/queryByCameraCode', getDevice='/ventanaly-device/monitor/device', getVentanalyCamera='/safety/ventanalyCamera/list' } /** * 列表接口 * @param params */ export const list = (params) => defHttp.get({ url: Api.list, params }); export const cameraAddr = (params) => defHttp.get({ url: Api.getCameraUrl, params }); export const getCameraDevKind = () => defHttp.get({ url: Api.getCameraDevKind, }); export const getDevice = (params) => defHttp.post({ url: Api.getDevice,params }); export const getVentanalyCamera = (params) => defHttp.get({ url: Api.getVentanalyCamera,params });