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
+2
View File
@@ -95,6 +95,8 @@ type KnowledgeService interface {
GetFAQEntry(ctx context.Context, kbID string, entrySeqID int64) (*types.FAQEntry, error)
// UpdateFAQEntry updates a single FAQ entry.
UpdateFAQEntry(ctx context.Context, kbID string, entrySeqID int64, payload *types.FAQEntryPayload) (*types.FAQEntry, error)
// AddSimilarQuestions adds similar questions to a FAQ entry.
AddSimilarQuestions(ctx context.Context, kbID string, entrySeqID int64, questions []string) (*types.FAQEntry, error)
// UpdateFAQEntryFieldsBatch updates multiple fields for FAQ entries in batch.
// Supports updating is_enabled, is_recommended, tag_id, and other fields in a single call.
UpdateFAQEntryFieldsBatch(ctx context.Context, kbID string, req *types.FAQEntryFieldsBatchUpdate) error