First implementation of fetching collections of book managed by user
This commit is contained in:
@@ -43,3 +43,20 @@ type BookItemGet struct {
|
||||
WantRead bool `json:"wantread"`
|
||||
CoverPath string `json:"coverPath"`
|
||||
}
|
||||
|
||||
type CollectionItemsGet struct {
|
||||
Count int64 `json:"count"`
|
||||
Collections []CollectionItemGet `json:"collections"`
|
||||
}
|
||||
|
||||
type CollectionItemGet struct {
|
||||
ID uint `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Books []CollectionBookItemGet `json:"books"`
|
||||
}
|
||||
|
||||
type CollectionBookItemGet struct {
|
||||
ID uint `json:"id"`
|
||||
Title string `json:"title"`
|
||||
CoverPath string `json:"coverPath"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user