| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | |
| | | return aiKnowledgeFileService.update(dto); |
| | | } |
| | | |
| | | @GetMapping("refresh/{id}") |
| | | @ControllerEndpoint(operation = "刷新", exceptionMessage = "操作失败") |
| | | public FebsResponse refresh( |
| | | @NotNull(message = "{required}") @PathVariable String id |
| | | ) { |
| | | |
| | | return aiKnowledgeFileService.refresh(id); |
| | | } |
| | | |
| | | @GetMapping("delete/{id}") |
| | | @ControllerEndpoint(operation = "删除", exceptionMessage = "操作失败") |
| | | public FebsResponse delete( |
| | | @NotNull(message = "{required}") @PathVariable String id |
| | | ) { |
| | | |
| | | return aiKnowledgeFileService.delete(id); |
| | | } |
| | | } |