feat: 新增FAQ批量导入dry run功能

This commit is contained in:
wizardchen
2026-01-06 10:51:40 +08:00
parent a35999466c
commit 100484f13d
14 changed files with 869 additions and 6 deletions
+5
View File
@@ -200,6 +200,11 @@ func RegisterFAQRoutes(r *gin.RouterGroup, handler *handler.FAQHandler) {
{
faqImport.GET("/progress/:task_id", handler.GetImportProgress)
}
// FAQ dry run progress route (outside of knowledge-base scope)
faqDryRun := r.Group("/faq/dryrun")
{
faqDryRun.GET("/progress/:task_id", handler.GetDryRunProgress)
}
}
// RegisterKnowledgeBaseRoutes 注册知识库相关的路由
+3
View File
@@ -79,6 +79,9 @@ func RunAsynqServer(params AsynqTaskParams) *asynq.ServeMux {
// Register FAQ import handler
mux.HandleFunc(types.TypeFAQImport, params.KnowledgeService.ProcessFAQImport)
// Register FAQ dry run handler
mux.HandleFunc(types.TypeFAQDryRun, params.KnowledgeService.ProcessFAQDryRun)
// Register question generation handler
mux.HandleFunc(types.TypeQuestionGeneration, params.KnowledgeService.ProcessQuestionGeneration)