feat: 重构FAQ导入进度,改用Redis存储任务状态

This commit is contained in:
wizardchen
2025-12-18 19:41:36 +08:00
committed by lyingbug
parent 7576f08ad5
commit ad450e6bce
8 changed files with 272 additions and 110 deletions
+5
View File
@@ -187,6 +187,11 @@ func RegisterFAQRoutes(r *gin.RouterGroup, handler *handler.FAQHandler) {
faq.DELETE("/entries", handler.DeleteEntries)
faq.POST("/search", handler.SearchFAQ)
}
// FAQ import progress route (outside of knowledge-base scope)
faqImport := r.Group("/faq/import")
{
faqImport.GET("/progress/:task_id", handler.GetImportProgress)
}
}
// RegisterKnowledgeBaseRoutes 注册知识库相关的路由