Skip to content

Commit a3db6d2

Browse files
authored
Merge pull request #3 from polyse/bugfix-json-structure
fix json format
2 parents 0cd9e03 + 1997864 commit a3db6d2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sdk.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ type Source struct {
2323
}
2424

2525
type RawData struct {
26-
Source
27-
Url string `json:"url"`
28-
Data string `json:"data"`
26+
Source Source `json:"source"`
27+
Url string `json:"url"`
28+
Data string `json:"data"`
2929
}
3030

3131
type Documents struct {
3232
Documents []RawData `json:"documents"`
3333
}
3434

3535
type ResponseData struct {
36-
Source
37-
Url string `json:"url"`
36+
Source Source
37+
Url string `json:"url"`
3838
}
3939

4040
// DBClient struct consist payload and collection name

0 commit comments

Comments
 (0)