From f2ef9272ed076bdca33d21b39bcc671e576553b3 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期二, 27 九月 2022 11:30:04 +0800 Subject: [PATCH] 添加场景的 时间段的添加编辑删除 加请求字段devid --- src/api/camera.ts | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/api/camera.ts b/src/api/camera.ts index d2f33a5..a47cabc 100644 --- a/src/api/camera.ts +++ b/src/api/camera.ts @@ -1,9 +1,10 @@ import request from "@/scripts/httpRequest"; +import request2 from './index' import qs from "qs"; export const createCamera = (camera: any) => { - return request({ + return request2({ url: "/saas/api-s/camera/add", method: "post", data: camera @@ -11,7 +12,7 @@ }; export const updateCameraInfo = (camera: any) => { - return request({ + return request2({ url: "/saas/api-s/camera/update", method: "post", data: camera @@ -66,11 +67,20 @@ }); }; -export const updateSnapshot = (cameraId: string) => { +export const updateSnapshot = (data: any) => { return request({ url: "/saas/api-s/camera/updateSnapshotUrl", - method: "get", - params: { cameraId: cameraId } + 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