mirror of
https://github.com/icereed/paperless-gpt.git
synced 2025-03-13 05:08:01 -05:00
Merge remote-tracking branch 'refs/remotes/origin/simplify-client' into simplify-client
This commit is contained in:
commit
4d8e4ff17a
1 changed files with 12 additions and 10 deletions
22
types.go
22
types.go
|
@ -1,5 +1,17 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
// GetDocumentsApiResponse is the response payload for /documents endpoint.
|
||||||
|
// But we are only interested in a subset of the fields.
|
||||||
|
type GetDocumentsApiResponse struct {
|
||||||
|
Count int `json:"count"`
|
||||||
|
// Next interface{} `json:"next"`
|
||||||
|
// Previous interface{} `json:"previous"`
|
||||||
|
All []int `json:"all"`
|
||||||
|
Results []GetDocumentApiResponseResult `json:"results"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetDocumentApiResponseResult is a part of the response payload for /documents endpoint.
|
||||||
|
// But we are only interested in a subset of the fields.
|
||||||
type GetDocumentApiResponseResult struct {
|
type GetDocumentApiResponseResult struct {
|
||||||
ID int `json:"id"`
|
ID int `json:"id"`
|
||||||
Correspondent int `json:"correspondent"`
|
Correspondent int `json:"correspondent"`
|
||||||
|
@ -26,16 +38,6 @@ type GetDocumentApiResponseResult struct {
|
||||||
// } `json:"__search_hit__"`
|
// } `json:"__search_hit__"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetTagsApiResponse is the response payload for /tags endpoint.
|
|
||||||
// But we are only interested in a subset of the fields.
|
|
||||||
type GetDocumentsApiResponse struct {
|
|
||||||
Count int `json:"count"`
|
|
||||||
// Next interface{} `json:"next"`
|
|
||||||
// Previous interface{} `json:"previous"`
|
|
||||||
All []int `json:"all"`
|
|
||||||
Results []GetDocumentApiResponseResult `json:"results"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetDocumentApiResponse is the response payload for /documents/{id} endpoint.
|
// GetDocumentApiResponse is the response payload for /documents/{id} endpoint.
|
||||||
// But we are only interested in a subset of the fields.
|
// But we are only interested in a subset of the fields.
|
||||||
type GetDocumentApiResponse struct {
|
type GetDocumentApiResponse struct {
|
||||||
|
|
Loading…
Reference in a new issue