properly parse notes array on folder collections (#1)

Co-authored-by: David Ashby <delta.mu.alpha@gmail.com>
Reviewed-on: #1
This commit is contained in:
David 2022-03-13 21:13:19 +00:00
parent f16388f238
commit 796bff1c6c

View File

@ -67,7 +67,7 @@ type CollectionItemSource struct {
DateAdded string `json:"date_added"` DateAdded string `json:"date_added"`
FolderID int `json:"folder_id,omitempty"` FolderID int `json:"folder_id,omitempty"`
InstanceID int `json:"instance_id"` InstanceID int `json:"instance_id"`
Notes string `json:"notes,omitempty"` Notes []Note `json:"notes,omitempty"`
Rating int `json:"rating"` Rating int `json:"rating"`
} }
@ -88,6 +88,12 @@ type BasicInformation struct {
Year int `json:"year"` Year int `json:"year"`
} }
// Note ...
type Note struct {
ID int `json:"field_id"`
Value string `json:"value"`
}
// CollectionItems list of items in a users collection // CollectionItems list of items in a users collection
type CollectionItems struct { type CollectionItems struct {
Pagination Page `json:"pagination"` Pagination Page `json:"pagination"`