From f23482c760a89f7c9a72ebb60875c23f71e2f600 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 24 Dec 2025 13:13:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=BC=BAFAQ=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=8C=89=E6=8C=87=E5=AE=9A=E5=AD=97=E6=AE=B5=EF=BC=88=E6=A0=87?= =?UTF-8?q?=E5=87=86=E9=97=AE=E9=A2=98/=E7=9B=B8=E4=BC=BC=E9=97=AE?= =?UTF-8?q?=E6=B3=95/=E7=AD=94=E6=A1=88/=E5=85=A8=E9=83=A8=EF=BC=89?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/faq.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/faq.go b/client/faq.go index 2e27ba37..039016fe 100644 --- a/client/faq.go +++ b/client/faq.go @@ -140,9 +140,10 @@ type faqSimpleResponse struct { } // ListFAQEntries returns paginated FAQ entries under a knowledge base. +// searchField: specifies which field to search in ("standard_question", "similar_questions", "answers", "" for all) // sortOrder: "asc" for time ascending (updated_at ASC), default is time descending (updated_at DESC) func (c *Client) ListFAQEntries(ctx context.Context, - knowledgeBaseID string, page, pageSize int, tagID string, keyword string, sortOrder string, + knowledgeBaseID string, page, pageSize int, tagID string, keyword string, searchField string, sortOrder string, ) (*FAQEntriesPage, error) { path := fmt.Sprintf("/api/v1/knowledge-bases/%s/faq/entries", knowledgeBaseID) query := url.Values{} @@ -158,6 +159,9 @@ func (c *Client) ListFAQEntries(ctx context.Context, if keyword != "" { query.Add("keyword", keyword) } + if searchField != "" { + query.Add("search_field", searchField) + } if sortOrder != "" { query.Add("sort_order", sortOrder) }