feat: Add tag management and FAQ management APIs, enhance knowledge base functionality with keyword search and custom file naming support

This commit is contained in:
wizardchen
2025-12-02 20:39:59 +08:00
parent cdf576eb18
commit 845d990a48
29 changed files with 1471 additions and 394 deletions
+4 -1
View File
@@ -113,7 +113,7 @@ type faqSimpleResponse struct {
// ListFAQEntries returns paginated FAQ entries under a knowledge base.
func (c *Client) ListFAQEntries(ctx context.Context,
knowledgeBaseID string, page, pageSize int, tagID string,
knowledgeBaseID string, page, pageSize int, tagID string, keyword string,
) (*FAQEntriesPage, error) {
path := fmt.Sprintf("/api/v1/knowledge-bases/%s/faq/entries", knowledgeBaseID)
query := url.Values{}
@@ -126,6 +126,9 @@ func (c *Client) ListFAQEntries(ctx context.Context,
if tagID != "" {
query.Add("tag_id", tagID)
}
if keyword != "" {
query.Add("keyword", keyword)
}
resp, err := c.doRequest(ctx, http.MethodGet, path, nil, query)
if err != nil {