heyujie
2022-05-05 c7ec9e17f6e48335912bad1c07df56ba8eb8f662
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 }
  });