package com.muyu.aliyun.controller; import com.muyu.aliyun.service.KnowledgeBaseUploadService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @RestController @RequestMapping("/ai/industry/report") public class KnowledgeBaseUploadController { @Autowired private KnowledgeBaseUploadService knowledgeBaseUploadService; @PostMapping("/KnowledgeBaseUpload") public String uploadFile(@RequestParam("file") MultipartFile file) { String workspaceId = "llm-98lxu358qfvxdxvt"; String categoryId = "cate_997567e8a7e94f4caab94e78c580adb4_10062067"; return knowledgeBaseUploadService.uploadDocument(file, workspaceId, categoryId); } }