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