|  |  |  | 
|---|
|  |  |  | @ApiOperationSupport(includeParameters = {"cmd.cameraId", "cmd.channelNum", "cmd.ptzMap"}) | 
|---|
|  |  |  | public @ResponseBody | 
|---|
|  |  |  | AjaxResult SetPTZ(@RequestBody CameraCmd cmd) { | 
|---|
|  |  |  | cmd.setOperator(SecurityUtils.getUserId()); | 
|---|
|  |  |  | return toAjax(sdk.setPtz(cmd)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | public @ResponseBody | 
|---|
|  |  |  | AjaxResult setPTZLock(@RequestBody CameraCmd cmd) { | 
|---|
|  |  |  | cmd.setOperator(SecurityUtils.getUserId()); | 
|---|
|  |  |  | return toAjax(sdk.controlLock(cmd)); | 
|---|
|  |  |  | return AjaxResult.success(sdk.controlLock(cmd)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("设置解锁") | 
|---|
|  |  |  | @PostMapping("/setPTZUnLock") | 
|---|
|  |  |  | @ApiOperationSupport(includeParameters = {"cmd.cameraId"}) | 
|---|
|  |  |  | @Log(title = "设置解锁", businessType = BusinessType.CONTROL) | 
|---|
|  |  |  | public @ResponseBody | 
|---|
|  |  |  | AjaxResult setPTZUnLock(@RequestBody CameraCmd cmd) { | 
|---|
|  |  |  | cmd.setOperator(SecurityUtils.getUserId()); | 
|---|
|  |  |  | return AjaxResult.success(sdk.controlUnLock(cmd)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("获取云台锁定信息") | 
|---|
|  |  |  | 
|---|
|  |  |  | return toAjax(sdk.controlFocusMode(cmd)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "获取聚焦模式", notes = "1手动2自动") | 
|---|
|  |  |  | @PostMapping("/getFocusMode") | 
|---|
|  |  |  | public @ResponseBody | 
|---|
|  |  |  | AjaxResult getFocusMode(@RequestBody CameraCmd cmd) { | 
|---|
|  |  |  | String focusMode = sdk.getFocusMode(cmd); | 
|---|
|  |  |  | return AjaxResult.success(focusMode); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("云台加热") | 
|---|
|  |  |  | @PostMapping("/heateRpwron") | 
|---|
|  |  |  | @Log(title = "云台加热", businessType = BusinessType.CONTROL) | 
|---|
|  |  |  | 
|---|
|  |  |  | String base64Str = sdk.captureJPEGPicture(cmd); | 
|---|
|  |  |  | return toAjaxString(base64Str, "相机抓图"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("相机抓图") | 
|---|
|  |  |  | @PostMapping("/picCutCate") | 
|---|
|  |  |  | @Log(title = "相机抓图", businessType = BusinessType.CONTROL) | 
|---|