| | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.security.PermitAll; |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import static com.iailab.framework.common.pojo.CommonResult.error; |
| | | import static com.iailab.framework.common.pojo.CommonResult.success; |
| | |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除") |
| | | @PreAuthorize("@ss.hasPermission('video:camera:delete')") |
| | | public CommonResult delete(@RequestBody String[] ids) { |
| | | cameraService.delete(ids); |
| | | public CommonResult delete(@RequestParam("id") String id) { |
| | | cameraService.delete(id); |
| | | return success(); |
| | | } |
| | | |
| | | @PostMapping("/DHCaptureCallback") |
| | | @Operation(summary = "大华摄像头截图成功后回调存储处理图片") |
| | | @PermitAll |
| | | public CommonResult DHCaptureCallback(@RequestBody Map<String, String> params) { |
| | | cameraService.dealCapture(params); |
| | | return success(); |
| | | } |
| | | // @PostMapping("/DHCaptureCallback") |
| | | // @Operation(summary = "大华摄像头截图成功后回调存储处理图片") |
| | | // @PermitAll |
| | | // public CommonResult DHCaptureCallback(@RequestBody Map<String, String> params) { |
| | | // cameraService.dealCapture(params); |
| | | // return success(); |
| | | // } |
| | | } |