From b73200f9537a39f484708409a6f8840ebb0db82c Mon Sep 17 00:00:00 2001
From: mark <mark18340872469@163.com>
Date: 星期二, 27 九月 2022 17:10:16 +0800
Subject: [PATCH] 又改

---
 src/api/report.ts |   70 +++++++++++++++++++++++++++++++++++
 1 files changed, 70 insertions(+), 0 deletions(-)

diff --git a/src/api/report.ts b/src/api/report.ts
index 415c291..de6e152 100644
--- a/src/api/report.ts
+++ b/src/api/report.ts
@@ -62,3 +62,73 @@
     params: query
   })
 }
+
+/**
+ * 
+ * 鏁版嵁鎺ㄩ�� 璁惧淇℃伅缁存姢
+鏌ヨ璁惧
+ */
+export const getDevicesList = (query: any) => {
+  return request({
+    url: "/api-a/v1/devices/list",
+    method: "get",
+    params: query
+  })
+}
+
+// 娣诲姞璁惧
+// 鍙傛暟 json
+export const devicesCreate = (query: any) => {
+  return request({
+    url: "/api-a/v1/devices/create",
+    method: "post",
+    // data: qs.stringify(query)
+    data: query
+  })
+}
+
+// 淇敼锛屽弬鏁帮細杩斿洖鍊肩殑鎵�鏈夊睘鎬�
+export const devicesUpdate = (query: any) => {
+  return request({
+    url: "/api-a/v1/devices/update",
+    method: "post",
+    data: query
+  })
+}
+
+// 鍒犻櫎锛屽弬鏁� id
+export const devicesDelete = (query: any) => {
+  return request({
+    url: "/api-a/v1/devices/delete",
+    method: "get",
+    params: query
+  })
+}
+/**
+ * 
+ * 鐐逛綅淇℃伅缁存姢
+鏌ヨ
+ */
+export const camerasList = (query: any) => {
+  return request({
+    url: "/api-a/v1/cameras/list",
+    method: "get",
+    params: query
+  })
+}
+//娣诲姞鐐逛綅
+export const camerasCreate = (query: any) => {
+  return request({
+    url: "/api-a/v1/cameras/create",
+    method: "post",
+    data: query
+  })
+}
+//鍒犻櫎
+export const camerasDelete = (query: any) => {
+  return request({
+    url: "/api-a/v1/cameras/delete",
+    method: "get",
+    params: query
+  })
+}

--
Gitblit v1.8.0