“djh”
5 days ago b0be631d7800b2a35c4dfeb9332877946e361829
multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/InternalKnowledgeController.java
@@ -3,7 +3,6 @@
import com.gkhy.exam.common.annotation.RepeatSubmit;
import com.gkhy.exam.common.api.CommonResult;
import com.gkhy.exam.system.domain.ExternalKnowledge;
import com.gkhy.exam.system.domain.InternalKnowledge;
import com.gkhy.exam.system.service.InternalKnowledgeService;
import io.swagger.annotations.Api;
@@ -13,6 +12,7 @@
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>
@@ -35,6 +35,7 @@
            @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){
@@ -55,4 +56,13 @@
    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));
    }
}