| | |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.dto.video.AlarmParam; |
| | | import com.ycl.dto.video.HKAlarmParam; |
| | | import com.ycl.entity.video.VideoPoint; |
| | | import com.ycl.enums.common.ResultCode; |
| | | import com.ycl.service.video.IVideoAlarmReportService; |
| | |
| | | return new CommonResult(ResultCode.SUCCESS.getCode(), ResultCode.SUCCESS.getMessage()); |
| | | } |
| | | |
| | | @ApiOperation("海康视频报警推送API") |
| | | @PostMapping("/HK/alarmReport") |
| | | @LogSave(operationType = "报警管理", contain = "海康视频报警推送") |
| | | public CommonResult hkAlarmReport(@RequestBody @Validated HKAlarmParam alarmParam) { |
| | | // System.out.println("保存报警数据:" + JSONObject.toJSONString(alarmParam)); |
| | | videoAlarmReportService.saveFromHK(alarmParam); |
| | | return new CommonResult(ResultCode.SUCCESS.getCode(), ResultCode.SUCCESS.getMessage()); |
| | | } |
| | | |
| | | @GetMapping("/Video/{code}/{subType}") |
| | | @ApiOperation(value = "设备获取监控地址") |
| | | @SneakyThrows |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | @GetMapping(value = "/index") |
| | | @ResponseBody |
| | | public String getImages(HttpServletRequest request, HttpServletResponse response) { |
| | | return "遂昌综合执法平台"; |
| | | |
| | | } |
| | | |
| | | private byte[] getBytes(String fileUrl, String OSSAccessKeyId, String Signature, String sessionId) { |
| | | int index = sessionDic.get(sessionId); |
| | | try { |