| | |
| | | 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> |
| | |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = false, value = "公司id"), |
| | | @ApiImplicitParam(paramType = "query", name = "knowledgeType", dataType = "int", required = false, value = "1、体系2、项目3、其他 4、技术文件 5、知识产权 6、质量服务标准"), |
| | | }) |
| | | @GetMapping("/selectInternalKnowledgeList") |
| | | public CommonResult selectInternalKnowledgeList(InternalKnowledge internalKnowledge){ |
| | |
| | | public CommonResult deletedInternalKnowledge(@RequestParam Integer id){ |
| | | return internalKnowledgeService.deletedInternalKnowledge(id); |
| | | } |
| | | @PostMapping("/importInternalKnowledge") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = true, value = "companyId"), |
| | | }) |
| | | @ApiOperation(value = "导入内部知识") |
| | | public CommonResult importInternalKnowledge(MultipartFile file, Long companyId) { |
| | | return CommonResult.success(internalKnowledgeService.importInternalKnowledge(companyId, file)); |
| | | } |
| | | |
| | | } |