camera.api.ts 797 B

123456789101112131415161718192021
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. getCameraDevKind='/safety/ventanalyCamera/getCameraDevKind',
  4. list = '/safety/ventanalyCamera/listNew',
  5. getCameraUrl = '/ventanaly-device/camera/queryByCameraCode',
  6. getDevice='/ventanaly-device/monitor/device',
  7. getVentanalyCamera='/safety/ventanalyCamera/list'
  8. }
  9. /**
  10. * 列表接口
  11. * @param params
  12. */
  13. export const list = (params) => defHttp.get({ url: Api.list, params });
  14. export const cameraAddr = (params) => defHttp.get({ url: Api.getCameraUrl, params });
  15. export const getCameraDevKind = () => defHttp.get({ url: Api.getCameraDevKind, });
  16. export const getDevice = (params) => defHttp.post({ url: Api.getDevice,params });
  17. export const getVentanalyCamera = (params) => defHttp.get({ url: Api.getVentanalyCamera,params });