| | |
| | | /** |
| | | * 查询设备资产列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:video:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:video:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TMonitorVideo tMonitorVideo) |
| | | { |
| | |
| | | /** |
| | | * 导出设备资产列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:video:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:video:export')") |
| | | @Log(title = "设备资产", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TMonitorVideo tMonitorVideo) |
| | |
| | | /** |
| | | * 获取设备资产详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:video:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:video:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * 新增设备资产 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:video:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:video:add')") |
| | | @Log(title = "设备资产", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TMonitorVideo tMonitorVideo) |
| | |
| | | /** |
| | | * 修改设备资产 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:video:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:video:edit')") |
| | | @Log(title = "设备资产", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TMonitorVideo tMonitorVideo) |
| | |
| | | /** |
| | | * 删除设备资产 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:video:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:video:remove')") |
| | | @Log(title = "设备资产", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |