‘liusuyi’
2023-09-06 197a596d8787eaab061190dc66977e33b6bcee96
ard-work/src/main/java/com/ruoyi/device/hiksdk/controller/SdkController.java
@@ -55,6 +55,10 @@
        sdk.loginAll();
    }
    @RequestMapping("/preview")
    private String preview() {
        return "preview";
    }
    @RequestMapping("/index")
    private String index() {
        return "test";
@@ -322,4 +326,13 @@
        String path = sdk.record(cmd);
        return toAjaxString(path, "手动录像");
    }
    @ApiOperation("获取相机架设参数")
    @PostMapping("/getCameraSetupCFG")
    @Log(title = "获取相机架设参数", businessType = BusinessType.CONTROL)
    @ApiOperationSupport(includeParameters = {"cmd.cameraId", "cmd.channelNum", "cmd.enable"})
    public @ResponseBody
    AjaxResult getCameraSetupCFG(@RequestBody CameraCmd cmd) {
        cmd.setOperator(SecurityUtils.getUserId());
        return AjaxResult.success(sdk.getGisInfo(cmd));
    }
}