Add a view to see all books in a collection
This commit is contained in:
@@ -44,6 +44,13 @@ type BookItemGet struct {
|
||||
CoverPath string `json:"coverPath"`
|
||||
}
|
||||
|
||||
type CollectionGet struct {
|
||||
Name string `json:"name"`
|
||||
Count int64 `json:"count"`
|
||||
Books []CollectionBookItemGet `json:"books"`
|
||||
UserID uint `json:"-"`
|
||||
}
|
||||
|
||||
type CollectionItemsGet struct {
|
||||
Count int64 `json:"count"`
|
||||
Collections []CollectionItemGet `json:"collections"`
|
||||
|
||||
Reference in New Issue
Block a user