|
@@ -2,6 +2,7 @@ package fastgpt
|
|
|
|
|
|
import (
|
|
|
"errors"
|
|
|
+ "time"
|
|
|
)
|
|
|
|
|
|
type DataResp struct {
|
|
@@ -61,12 +62,13 @@ type DataInfo struct {
|
|
|
Text string `json:"text"`
|
|
|
ID string `json:"_id"`
|
|
|
} `json:"indexes"`
|
|
|
- DatasetID string `json:"datasetId"`
|
|
|
- CollectionID string `json:"collectionId"`
|
|
|
- SourceName string `json:"sourceName"`
|
|
|
- SourceID string `json:"sourceId"`
|
|
|
- IsOwner bool `json:"isOwner"`
|
|
|
- CanWrite bool `json:"canWrite"`
|
|
|
+ DatasetID string `json:"datasetId"`
|
|
|
+ CollectionID string `json:"collectionId"`
|
|
|
+ SourceName string `json:"sourceName"`
|
|
|
+ SourceID string `json:"sourceId"`
|
|
|
+ IsOwner bool `json:"isOwner"`
|
|
|
+ CanWrite bool `json:"canWrite"`
|
|
|
+ UpdateTime time.Time `json:"updateTime"`
|
|
|
}
|
|
|
|
|
|
type DataListResp struct {
|