| | |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/device/cameras") |
| | | @RequestMapping("/device/camera") |
| | | @Api(tags = "相机管理接口") |
| | | public class ArdCameraController extends BaseController { |
| | | |
| | |
| | | /** |
| | | * 查询相机设备列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('device:cameras:list')") |
| | | @PreAuthorize("@ss.hasPermi('device:camera:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation("查询相机设备列表") |
| | | public TableDataInfo list(ArdCamera ardCamera) { |
| | |
| | | * 导出相机设备列表 |
| | | */ |
| | | @ApiOperation("导出相机设备列表") |
| | | @PreAuthorize("@ss.hasPermi('device:cameras:export')") |
| | | @PreAuthorize("@ss.hasPermi('device:camera:export')") |
| | | @Log(title = "相机设备", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdCamera ardCamera) { |
| | |
| | | * 获取相机设备详细信息 |
| | | */ |
| | | @ApiOperation("获取相机设备详细信息") |
| | | @PreAuthorize("@ss.hasPermi('device:cameras:query')") |
| | | @PreAuthorize("@ss.hasPermi('device:camera:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardCameraService.selectArdCameraById(id)); |
| | |
| | | * 新增相机设备 |
| | | */ |
| | | @ApiOperation("新增相机设备") |
| | | @PreAuthorize("@ss.hasPermi('device:cameras:add')") |
| | | @PreAuthorize("@ss.hasPermi('device:camera:add')") |
| | | @Log(title = "相机设备", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdCamera camera) { |
| | |
| | | * 修改相机设备 |
| | | */ |
| | | @ApiOperation("修改相机设备") |
| | | @PreAuthorize("@ss.hasPermi('device:cameras:edit')") |
| | | @PreAuthorize("@ss.hasPermi('device:camera:edit')") |
| | | @Log(title = "相机设备", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdCamera camera) { |
| | |
| | | * 删除相机设备 |
| | | */ |
| | | @ApiOperation("删除相机设备") |
| | | @PreAuthorize("@ss.hasPermi('device:cameras:remove')") |
| | | @PreAuthorize("@ss.hasPermi('device:camera:remove')") |
| | | @Log(title = "相机设备", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |
| | |
| | | |
| | | |
| | | @Log(title = "导入相机设备", businessType = BusinessType.IMPORT) |
| | | @PreAuthorize("@ss.hasPermi('device:cameras:import')") |
| | | @PreAuthorize("@ss.hasPermi('device:camera:import')") |
| | | @PostMapping("/importData") |
| | | @ApiOperation("导入相机设备") |
| | | public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { |