| | |
| | | public @ResponseBody |
| | | AjaxResult pTZControl(@RequestBody CameraCmd cmd) { |
| | | cmd.setOperator(SecurityUtils.getUserId()); |
| | | return toAjax(sdk.pTZControl(cmd)); |
| | | return sdk.pTZControl(cmd); |
| | | } |
| | | |
| | | @ApiOperation("获取PTZ") |
| | |
| | | public @ResponseBody |
| | | AjaxResult setPTZ(@RequestBody CameraCmd cmd) { |
| | | cmd.setOperator(SecurityUtils.getUserId()); |
| | | return toAjax(sdk.setPtz(cmd)); |
| | | return sdk.setPtz(cmd); |
| | | } |
| | | |
| | | @ApiOperation("设置零方位角") |
| | |
| | | public @ResponseBody |
| | | AjaxResult setZeroPTZ(@RequestBody CameraCmd cmd) { |
| | | cmd.setOperator(SecurityUtils.getUserId()); |
| | | return toAjax(sdk.setZeroPtz(cmd)); |
| | | return sdk.setZeroPtz(cmd); |
| | | } |
| | | |
| | | @ApiOperation("相机抓图") |
| | |
| | | String url = sdk.recordStopToMinio(cmd); |
| | | return AjaxResult.success(url); |
| | | } |
| | | } |
| | | } |