解决附件上传时的数据类型问题
This commit is contained in:
@@ -63,10 +63,10 @@ public interface KnowledgeBaseService {
|
|||||||
/**
|
/**
|
||||||
* 知识库追加导入已解析的文档
|
* 知识库追加导入已解析的文档
|
||||||
*/
|
*/
|
||||||
boolean submitDocuments(String kbId, String fileId);
|
Boolean submitDocuments(String kbId, String fileId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 知识库追加导入已解析的文档
|
* 知识库追加导入已解析的文档
|
||||||
*/
|
*/
|
||||||
boolean submitDocuments(String kbId, List<String> fileIds);
|
Boolean submitDocuments(String kbId, List<String> fileIds);
|
||||||
}
|
}
|
||||||
@@ -193,7 +193,7 @@ public class KnowledgeBaseServiceImpl implements KnowledgeBaseService {
|
|||||||
|
|
||||||
@Async
|
@Async
|
||||||
@Override
|
@Override
|
||||||
public boolean submitDocuments(String kbId, String fileId) {
|
public Boolean submitDocuments(String kbId, String fileId) {
|
||||||
String workspaceId = config.getWorkspaceId();
|
String workspaceId = config.getWorkspaceId();
|
||||||
try {
|
try {
|
||||||
Client client = clientFactory.createClient();
|
Client client = clientFactory.createClient();
|
||||||
@@ -205,7 +205,7 @@ public class KnowledgeBaseServiceImpl implements KnowledgeBaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean submitDocuments(String kbId, List<String> fileIds) {
|
public Boolean submitDocuments(String kbId, List<String> fileIds) {
|
||||||
String workspaceId = config.getWorkspaceId();
|
String workspaceId = config.getWorkspaceId();
|
||||||
boolean result = true;
|
boolean result = true;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user