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