From 0f70bb5e95342e1c88e16b4c12609cd45dd1b103 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期五, 21 五月 2021 14:27:47 +0800
Subject: [PATCH] add bhomebus api

---
 src/api/camera.ts |   40 +++++++++++++++++++++++++++++++++-------
 1 files changed, 33 insertions(+), 7 deletions(-)

diff --git a/src/api/camera.ts b/src/api/camera.ts
index 4705f56..701661f 100644
--- a/src/api/camera.ts
+++ b/src/api/camera.ts
@@ -27,8 +27,9 @@
 
 export const getCameraInfo = (id: string) => {
   return request({
-    url: "/data/api-v/camera/show/" + id,
-    method: "get"
+    url: "/data/api-v/camera/show",
+    method: "get",
+    params: { cid: id }
   });
 };
 
@@ -156,7 +157,7 @@
   })
 }
 //鍒犻櫎(灞曞尯)
-export const delArea = (data:any) => {
+export const delArea = (data: any) => {
   return request({
     url: "/data/api-v/acp/delete",
     method: "post",
@@ -165,7 +166,7 @@
 }
 
 //淇濆瓨鍖哄煙缂栬緫
-export const saveAreaInfo = (data:any) => {
+export const saveAreaInfo = (data: any) => {
   return request({
     url: "/data/api-v/acp/save",
     method: "post",
@@ -174,7 +175,7 @@
 }
 
 //鑾峰彇鎽勫儚鏈虹殑鍧愭爣鏍囧畾淇℃伅
-export const getCameraMarks = (query:any) => {
+export const getCameraMarks = (query: any) => {
   return request({
     url: '/data/api-v/camera/coord',
     method: "get",
@@ -183,10 +184,35 @@
 }
 
 //鏇存柊鎽勫儚鏈虹殑鍧愭爣鏍囧畾淇℃伅
-export const updateCameraMarks = (data:any) => {
+export const updateCameraMarks = (data: any) => {
   return request({
     url: '/data/api-v/camera/updateCoord',
     method: 'post',
     data
   })
-}
\ No newline at end of file
+}
+
+//淇濆瓨鎽勫儚鏈哄垎缁�
+export const saveCameraGroupInfo = (data: any) => {
+  return request({
+    url: '/data/api-v/camera/group/save',
+    method: 'post',
+    data
+  })
+}
+
+//鏌ヨ鎽勫儚鏈哄垎缁勪俊鎭�
+export const findCameraGroups = () => {
+  return request({
+    url: '/data/api-v/camera/group/findAll',
+    method: 'get'
+  })
+}
+
+export const delCameraGroup = (groupId: string) => {
+  return request({
+    url: '/data/api-v/camera/group/del?groupId=' + groupId,
+    method: 'post'
+  })
+}
+

--
Gitblit v1.8.0