| | |
| | | return R.data(common(HkConstant.playbackURLs, body)); |
| | | } |
| | | |
| | | /** |
| | | * 获取海康摄像头语音对讲url |
| | | * @param hk 查询参数 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "海康设备-获取海康摄像头语音对讲url", notes = "海康设备-获取海康摄像头语音对讲url") |
| | | @GetMapping(value = "/talkURLs") |
| | | public R talkURLs(HkVO hk) { |
| | | /** |
| | | * 组装请求参数 |
| | | */ |
| | | JSONObject jsonBody = new JSONObject(); |
| | | jsonBody.put("cameraIndexCode", hk.getCameraIndexCode()); |
| | | jsonBody.put("protocol", hk.getProtocol()); |
| | | String body = jsonBody.toJSONString(); |
| | | |
| | | /** |
| | | * 调用接口并返回数据 |
| | | * post请求application/json类型参数; |
| | | */ |
| | | return R.data(common(HkConstant.talkURLs, body)); |
| | | } |
| | | |
| | | } |