From 08b6a55a3a111aaee9842999b85afa60b6d61dc3 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 14 十一月 2024 15:29:38 +0800 Subject: [PATCH] 大华及海康摄像头截图功能开发 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/controller/admin/camera/CameraController.java | 20 +++++++++----------- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/controller/admin/camera/CameraController.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/controller/admin/camera/CameraController.java index 62a38de..810f3e0 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/controller/admin/camera/CameraController.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/controller/admin/camera/CameraController.java @@ -12,10 +12,8 @@ import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; -import javax.annotation.security.PermitAll; import javax.validation.Valid; import java.util.List; -import java.util.Map; import static com.iailab.framework.common.pojo.CommonResult.error; import static com.iailab.framework.common.pojo.CommonResult.success; @@ -81,16 +79,16 @@ @DeleteMapping("/delete") @Operation(summary = "删除") @PreAuthorize("@ss.hasPermission('video:camera:delete')") - public CommonResult delete(@RequestBody String[] ids) { - cameraService.delete(ids); + public CommonResult delete(@RequestParam("id") String id) { + cameraService.delete(id); return success(); } - @PostMapping("/DHCaptureCallback") - @Operation(summary = "大华摄像头截图成功后回调存储处理图片") - @PermitAll - public CommonResult DHCaptureCallback(@RequestBody Map<String, String> params) { - cameraService.dealCapture(params); - return success(); - } +// @PostMapping("/DHCaptureCallback") +// @Operation(summary = "大华摄像头截图成功后回调存储处理图片") +// @PermitAll +// public CommonResult DHCaptureCallback(@RequestBody Map<String, String> params) { +// cameraService.dealCapture(params); +// return success(); +// } } \ No newline at end of file -- Gitblit v1.9.3