window.api.ts 795 B

12345678910111213141516171819202122232425
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. list = '/monitor/device',
  4. baseList = '/safety/ventanalyWindow/list',
  5. cameraList = '/safety/ventanalyCamera/list',
  6. cameraAddrList = '/monitor/camera/info',
  7. windControl = '/device/updateWindowAutoAdjust',
  8. }
  9. /**
  10. * 列表接口
  11. * @param params
  12. */
  13. export const list = (params) => defHttp.post({ url: Api.list, params });
  14. /**
  15. * 保存或者更新用户
  16. * @param params
  17. */
  18. export const getTableList = (params) => defHttp.get({ url: Api.baseList, params });
  19. export const cameraList = (params) => defHttp.get({ url: Api.cameraList, params });
  20. export const cameraAddrList = (params) => defHttp.post({ url: Api.cameraAddrList, params });
  21. export const windControl = (params) => defHttp.post({ url: Api.cameraAddrList, params });