feat: 支持向 FAQ 条目添加相似问

This commit is contained in:
wizardchen
2026-01-12 15:02:45 +08:00
parent 14d7d3d995
commit 9338603c20
5 changed files with 240 additions and 0 deletions
+1
View File
@@ -189,6 +189,7 @@ func RegisterFAQRoutes(r *gin.RouterGroup, handler *handler.FAQHandler) {
faq.POST("/entries", handler.UpsertEntries)
faq.POST("/entry", handler.CreateEntry)
faq.PUT("/entries/:entry_id", handler.UpdateEntry)
faq.POST("/entries/:entry_id/similar-questions", handler.AddSimilarQuestions)
// Unified batch update API - supports is_enabled, is_recommended, tag_id
faq.PUT("/entries/fields", handler.UpdateEntryFieldsBatch)
faq.PUT("/entries/tags", handler.UpdateEntryTagBatch)