| | |
| | | @ApiOperation("文档信息表-添加") |
| | | @Log(title = "文档信息表-添加", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody Documentation documentation) { |
| | | boolean save = documentationService.save(documentation); |
| | | return save ? AjaxResult.success("添加成功") : AjaxResult.error("添加失败"); |
| | | return AjaxResult.success(documentationService.save(documentation)); |
| | | } |
| | | @PostMapping("/update") |
| | | @ApiOperation("文档信息表-更新") |
| | |
| | | @Log(title = "文档信息表-删除", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | | boolean remove = documentationService.removeBatchByIds(ids); |
| | | // boolean remove = documentationService.deleteByIds(ids); |
| | | return remove ? AjaxResult.success("删除成功") : AjaxResult.error("删除失败"); |
| | | return AjaxResult.success(documentationService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | @PostMapping("/export") |