From 282423aba28c3bfbaa29e505f8950e43ac7dc087 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 17 Dec 2025 20:30:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4Knowledge=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E4=BD=93Metadata=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=BAjson.RawMessage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/knowledge.go | 46 ++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/client/knowledge.go b/client/knowledge.go index 9423cff32..4828736bb 100644 --- a/client/knowledge.go +++ b/client/knowledge.go @@ -21,29 +21,29 @@ import ( // Knowledge represents knowledge information type Knowledge struct { - ID string `json:"id"` - TenantID uint64 `json:"tenant_id"` - KnowledgeBaseID string `json:"knowledge_base_id"` - TagID string `json:"tag_id"` - Type string `json:"type"` - Title string `json:"title"` - Description string `json:"description"` - Source string `json:"source"` - ParseStatus string `json:"parse_status"` - SummaryStatus string `json:"summary_status"` - EnableStatus string `json:"enable_status"` - EmbeddingModelID string `json:"embedding_model_id"` - FileName string `json:"file_name"` - FileType string `json:"file_type"` - FileSize int64 `json:"file_size"` - FileHash string `json:"file_hash"` - FilePath string `json:"file_path"` - StorageSize int64 `json:"storage_size"` - Metadata string `json:"metadata"` // Extensible metadata for storing machine information, paths, etc. - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` - ProcessedAt *time.Time `json:"processed_at"` - ErrorMessage string `json:"error_message"` + ID string `json:"id"` + TenantID uint64 `json:"tenant_id"` + KnowledgeBaseID string `json:"knowledge_base_id"` + TagID string `json:"tag_id"` + Type string `json:"type"` + Title string `json:"title"` + Description string `json:"description"` + Source string `json:"source"` + ParseStatus string `json:"parse_status"` + SummaryStatus string `json:"summary_status"` + EnableStatus string `json:"enable_status"` + EmbeddingModelID string `json:"embedding_model_id"` + FileName string `json:"file_name"` + FileType string `json:"file_type"` + FileSize int64 `json:"file_size"` + FileHash string `json:"file_hash"` + FilePath string `json:"file_path"` + StorageSize int64 `json:"storage_size"` + Metadata json.RawMessage `json:"metadata"` // Extensible metadata for storing machine information, paths, etc. + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + ProcessedAt *time.Time `json:"processed_at"` + ErrorMessage string `json:"error_message"` } // KnowledgeResponse represents the API response containing a single knowledge entry