ZZJ
2022-04-12 994e5e08cba4e6b9ce321b7cf5cb1ec8d19dfa22
src/api/camera.ts
@@ -4,7 +4,7 @@
export const createCamera = (camera: any) => {
  return request({
    url: "/data/api-v/camera/add",
    url: "/saas/api-s/camera/add",
    method: "post",
    data: camera
  });
@@ -12,25 +12,25 @@
export const updateCameraInfo = (camera: any) => {
  return request({
    url: "/data/api-v/camera/update",
    method: "put",
    url: "/saas/api-s/camera/update",
    method: "post",
    data: camera
  });
};
export const getCameraInfo = (id: string) => {
  return request({
    url: "/data/api-v/camera/show",
    url: "/saas/api-s/camera/show",
    method: "get",
    params: { id: id }
  });
};
export const delCamera = (id: string) => {
export const delCamera = (data: string) => {
  return request({
    url: "/data/api-v/camera/del",
    method: "get",
    params: { id: id }
    url: "/saas/api-s/camera/del",
    method: "post",
    data: data
  });
};
@@ -68,7 +68,7 @@
export const updateSnapshot = (cameraId: string) => {
  return request({
    url: "/data/api-v/camera/updateSnapshotUrl",
    url: "/saas/api-s/camera/updateSnapshotUrl",
    method: "get",
    params: { cameraId: cameraId }
  });