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