feat: support large FAQ imports via object storage
This commit is contained in:
@@ -3030,11 +3030,6 @@ func (s *knowledgeService) saveFAQImportResultToDatabase(ctx context.Context,
|
||||
importResult.FailedEntriesURL = progress.FailedEntriesURL
|
||||
}
|
||||
|
||||
// 设置成功条目信息
|
||||
if len(progress.SuccessEntries) > 0 {
|
||||
importResult.SuccessEntries = progress.SuccessEntries
|
||||
}
|
||||
|
||||
// 设置导入结果到Knowledge的metadata中
|
||||
if err := knowledge.SetLastFAQImportResult(importResult); err != nil {
|
||||
return fmt.Errorf("failed to set FAQ import result: %w", err)
|
||||
|
||||
@@ -359,9 +359,6 @@ type FAQImportResult struct {
|
||||
// 失败详情URL(失败条目较多时提供下载链接)
|
||||
FailedEntriesURL string `json:"failed_entries_url,omitempty"` // 失败条目CSV下载URL
|
||||
|
||||
// 成功条目简单信息
|
||||
SuccessEntries []FAQSuccessEntry `json:"success_entries,omitempty"` // 成功导入的条目简单信息
|
||||
|
||||
// 显示控制
|
||||
DisplayStatus string `json:"display_status"` // 显示状态:open 或 close
|
||||
|
||||
|
||||
Reference in New Issue
Block a user