| | |
| | | */ |
| | | @DataDictClass |
| | | @ApiOperation("查询NVR设备列表") |
| | | @PreAuthorize("@ss.hasPermi('oa:nvr:list')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:nvr:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo<SgNvrVo> list(@Validated(QueryGroup.class) SgNvrBo bo) { |
| | | return iSgNvrService.queryPageList(bo); |
| | |
| | | * 导出NVR设备列表 |
| | | */ |
| | | @ApiOperation("导出NVR设备列表") |
| | | @PreAuthorize("@ss.hasPermi('oa:nvr:export')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:nvr:export')") |
| | | @Log(title = "NVR设备", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public void export(@Validated SgNvrBo bo, HttpServletResponse response) { |
| | |
| | | * 获取NVR设备详细信息 |
| | | */ |
| | | @ApiOperation("获取NVR设备详细信息") |
| | | @PreAuthorize("@ss.hasPermi('oa:nvr:query')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:nvr:query')") |
| | | @GetMapping("/{id}") |
| | | public AjaxResult<SgNvrVo> getInfo(@ApiParam("主键") |
| | | @NotNull(message = "主键不能为空") |
| | |
| | | * 新增NVR设备 |
| | | */ |
| | | @ApiOperation("新增NVR设备") |
| | | @PreAuthorize("@ss.hasPermi('oa:nvr:add')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:nvr:add')") |
| | | @Log(title = "NVR设备", businessType = BusinessType.INSERT) |
| | | @RepeatSubmit() |
| | | @PostMapping() |
| | |
| | | * 修改NVR设备 |
| | | */ |
| | | @ApiOperation("修改NVR设备") |
| | | @PreAuthorize("@ss.hasPermi('oa:nvr:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:nvr:edit')") |
| | | @Log(title = "NVR设备", businessType = BusinessType.UPDATE) |
| | | @RepeatSubmit() |
| | | @PutMapping() |
| | |
| | | * 删除NVR设备 |
| | | */ |
| | | @ApiOperation("删除NVR设备") |
| | | @PreAuthorize("@ss.hasPermi('oa:nvr:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:nvr:remove')") |
| | | @Log(title = "NVR设备" , businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult<Void> remove(@ApiParam("主键串") |