From 58bf48cea61c6c5b4381a4b8ff5b4a39eb4671eb Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期五, 10 六月 2022 09:36:03 +0800 Subject: [PATCH] 国标摄像机信息接口 --- src/api/camera.ts | 45 +++++++++++++-------------------------------- 1 files changed, 13 insertions(+), 32 deletions(-) diff --git a/src/api/camera.ts b/src/api/camera.ts index 701661f..e2e07dc 100644 --- a/src/api/camera.ts +++ b/src/api/camera.ts @@ -1,13 +1,6 @@ import request from "@/scripts/httpRequest"; import qs from "qs"; -export const checkCameraConnet = (query: any) => { - return request({ - url: "/data/api-v/area/localmenu", - method: "get", - params: query - }); -}; export const createCamera = (camera: any) => { return request({ @@ -29,36 +22,23 @@ return request({ url: "/data/api-v/camera/show", method: "get", + params: { id: id } + }); +}; + +export const getGB28181CameraInfo = (id: string) => { + return request({ + url: "/data/api-v/gb28181/camera/show", + method: "get", params: { cid: id } }); }; export const delCamera = (id: string) => { return request({ - url: "/data/api-v/camera/del/" + id, - method: "delete" - }); -}; - -export const fetchCameraTasks = (id: string) => { - return request({ - url: "/data/api-v/camera/task/" + id, - method: "get" - }); -}; - -export const fetchCameraRulesByTask = (query: any) => { - return request({ - url: "/data/api-v/camera/getRulesByCameraAndTask", + url: "/data/api-v/camera/del", method: "get", - params: query - }); -}; - -export const deleteCameraTask = (cameraId, taskId) => { - return request({ - url: "/data/api-v/camera/delTask/" + cameraId + "/" + taskId, - method: "delete" + params: { id: id } }); }; @@ -96,8 +76,9 @@ export const updateSnapshot = (cameraId: string) => { return request({ - url: "/data/api-v/camera/updateSnapshotUrl/" + cameraId, - method: "get" + url: "/data/api-v/camera/updateSnapshotUrl", + method: "get", + params: { cameraId: cameraId } }); }; -- Gitblit v1.8.0