| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | public CommonResult deletedExternalKnowledge(@RequestParam Integer id){ |
| | | return externalKnowledgeService.deletedExternalKnowledge(id); |
| | | } |
| | | |
| | | @PostMapping("/importExternalKnowledge") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = true, value = "companyId"), |
| | | }) |
| | | @ApiOperation(value = "导入外部知识") |
| | | public CommonResult importExternalKnowledge(MultipartFile file, Long companyId) { |
| | | return CommonResult.success(externalKnowledgeService.importExternalKnowledge(companyId, file)); |
| | | } |
| | | } |