Add a view to see all books in a collection

This commit is contained in:
2026-04-03 22:57:45 +02:00
parent a5c4c0bbec
commit 625d2a2af1
20 changed files with 285 additions and 44 deletions

View File

@@ -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"`