| | |
| | | /** |
| | | * 查询知识库列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询") |
| | | public TableDataInfo list(DictEmer dictEmer) { |
| | |
| | | /** |
| | | * 导出知识库列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:export')") |
| | | @Log(title = "知识库", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出") |
| | |
| | | /** |
| | | * 获取知识库详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "根据id获取信息") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * 新增知识库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:add')") |
| | | @Log(title = "知识库", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增") |
| | |
| | | /** |
| | | * 修改知识库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:edit')") |
| | | @Log(title = "知识库", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改") |
| | |
| | | /** |
| | | * 删除知识库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:remove')") |
| | | @Log(title = "知识库", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除") |