From edef6ae8f59823258ce610c9074d32e698958b51 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期四, 28 七月 2022 15:30:44 +0800
Subject: [PATCH] 本地图片适配

---
 src/api/camera.ts |   38 ++++++++++++++++++++++++--------------
 1 files changed, 24 insertions(+), 14 deletions(-)

diff --git a/src/api/camera.ts b/src/api/camera.ts
index 52c51f9..a47cabc 100644
--- a/src/api/camera.ts
+++ b/src/api/camera.ts
@@ -1,36 +1,37 @@
 import request from "@/scripts/httpRequest";
+import request2 from './index'
 import qs from "qs";
 
 
 export const createCamera = (camera: any) => {
-  return request({
-    url: "/data/api-v/camera/add",
+  return request2({
+    url: "/saas/api-s/camera/add",
     method: "post",
     data: camera
   });
 };
 
 export const updateCameraInfo = (camera: any) => {
-  return request({
-    url: "/data/api-v/camera/update",
-    method: "put",
+  return request2({
+    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
   });
 };
 
@@ -66,11 +67,20 @@
   });
 };
 
-export const updateSnapshot = (cameraId: string) => {
+export const updateSnapshot = (data: any) => {
   return request({
-    url: "/data/api-v/camera/updateSnapshotUrl",
-    method: "get",
-    params: { cameraId: cameraId }
+    url: "/saas/api-s/camera/updateSnapshotUrl",
+    method: "post",
+    data:data
+  });
+};
+
+//鍒锋柊鍥芥爣搴曞浘
+export const updategb28181 = (data: any) => {
+  return request({
+    url: "/saas/api-s/gb28181/camera/capture",
+    method: "post",
+    data:data
   });
 };
 

--
Gitblit v1.8.0