潘志宝
2024-11-14 afa8fc57084c423218c6816b710dfb2f0b87ea89
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();
//    }
}