fix: 调整Knowledge结构体Metadata字段类型为string
This commit is contained in:
+23
-23
@@ -21,29 +21,29 @@ import (
|
|||||||
|
|
||||||
// Knowledge represents knowledge information
|
// Knowledge represents knowledge information
|
||||||
type Knowledge struct {
|
type Knowledge struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
TenantID uint64 `json:"tenant_id"`
|
TenantID uint64 `json:"tenant_id"`
|
||||||
KnowledgeBaseID string `json:"knowledge_base_id"`
|
KnowledgeBaseID string `json:"knowledge_base_id"`
|
||||||
TagID string `json:"tag_id"`
|
TagID string `json:"tag_id"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Source string `json:"source"`
|
Source string `json:"source"`
|
||||||
ParseStatus string `json:"parse_status"`
|
ParseStatus string `json:"parse_status"`
|
||||||
SummaryStatus string `json:"summary_status"`
|
SummaryStatus string `json:"summary_status"`
|
||||||
EnableStatus string `json:"enable_status"`
|
EnableStatus string `json:"enable_status"`
|
||||||
EmbeddingModelID string `json:"embedding_model_id"`
|
EmbeddingModelID string `json:"embedding_model_id"`
|
||||||
FileName string `json:"file_name"`
|
FileName string `json:"file_name"`
|
||||||
FileType string `json:"file_type"`
|
FileType string `json:"file_type"`
|
||||||
FileSize int64 `json:"file_size"`
|
FileSize int64 `json:"file_size"`
|
||||||
FileHash string `json:"file_hash"`
|
FileHash string `json:"file_hash"`
|
||||||
FilePath string `json:"file_path"`
|
FilePath string `json:"file_path"`
|
||||||
StorageSize int64 `json:"storage_size"`
|
StorageSize int64 `json:"storage_size"`
|
||||||
Metadata map[string]string `json:"metadata"` // Extensible metadata for storing machine information, paths, etc.
|
Metadata string `json:"metadata"` // Extensible metadata for storing machine information, paths, etc.
|
||||||
CreatedAt time.Time `json:"created_at"`
|
CreatedAt time.Time `json:"created_at"`
|
||||||
UpdatedAt time.Time `json:"updated_at"`
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
ProcessedAt *time.Time `json:"processed_at"`
|
ProcessedAt *time.Time `json:"processed_at"`
|
||||||
ErrorMessage string `json:"error_message"`
|
ErrorMessage string `json:"error_message"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// KnowledgeResponse represents the API response containing a single knowledge entry
|
// KnowledgeResponse represents the API response containing a single knowledge entry
|
||||||
|
|||||||
Reference in New Issue
Block a user