暂存
This commit is contained in:
@@ -5,7 +5,10 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// Document 结构体
|
||||
// 数据集内文件管理
|
||||
// 参考: https://ragflow.com.cn/docs/dev/http_api_reference#数据集内文件管理
|
||||
|
||||
// Document 文档结构体
|
||||
type Document struct {
|
||||
Id string `json:"id"`
|
||||
DatasetId string `json:"dataset_id"`
|
||||
@@ -93,8 +96,9 @@ func (c *Client) ListDocuments(ctx context.Context, datasetId string, req *ListD
|
||||
params["create_time_to"] = req.CreateTimeTo
|
||||
}
|
||||
|
||||
for k, v := range params {
|
||||
path += fmt.Sprintf("%s=%v&", k, v)
|
||||
query := buildQueryString(params)
|
||||
if query != "" {
|
||||
path += "?" + query
|
||||
}
|
||||
|
||||
var res ListDocumentsRes
|
||||
|
||||
Reference in New Issue
Block a user