| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.entity.video.VideoPoint; |
| | |
| | | |
| | | @GetMapping("/query") |
| | | @ApiOperation("查询") |
| | | @LogSave(operationType = "点位管理", contain = "查询点位") |
| | | public CommonResult searchVideoPoint(@RequestParam Long size, |
| | | @RequestParam Long current, |
| | | @RequestParam(required = false) Integer streetId, |
| | |
| | | |
| | | @PostMapping("/addition") |
| | | @ApiOperation("添加") |
| | | @LogSave(operationType = "点位管理", contain = "添加点位") |
| | | public CommonResult addVideoPoint(@RequestBody VideoPoint videoPoint) { |
| | | return CommonResult.success(iVideoPointService.save(videoPoint)); |
| | | } |
| | | |
| | | @PutMapping("/modification") |
| | | @ApiOperation("编辑") |
| | | @LogSave(operationType = "点位管理", contain = "编辑点位") |
| | | public CommonResult modifyVideoPoint(@RequestBody VideoPoint videoPoint) { |
| | | return CommonResult.success(iVideoPointService.updateById(videoPoint)); |
| | | } |
| | | |
| | | @DeleteMapping("/deletion") |
| | | @ApiOperation("删除") |
| | | @LogSave(operationType = "点位管理", contain = "修改点位") |
| | | public CommonResult deleteVideoPoint(@RequestParam Long id) { |
| | | return CommonResult.success(iVideoPointService.removeById(id)); |
| | | } |