Add position for book in collection

This commit is contained in:
2026-04-11 17:26:21 +02:00
parent 36a21c8891
commit d2fe3bf34f
14 changed files with 200 additions and 58 deletions

View File

@@ -45,23 +45,28 @@ type BookItemGet struct {
}
type CollectionGet struct {
Name string `json:"name"`
Count int64 `json:"count"`
Books []BookItemGet `json:"books"`
}
type CollectionItemsGet struct {
Count int64 `json:"count"`
Collections []CollectionItemGet `json:"collections"`
Name string `json:"name"`
Count int64 `json:"count"`
Items []CollectionItemGet `json:"items"`
}
type CollectionItemGet struct {
ID uint `json:"id"`
Name string `json:"name"`
Books []CollectionBookItemGet `json:"books"`
Position uint `json:"position"`
Book BookItemGet `json:"book"`
}
type CollectionBookItemGet struct {
type CollectionItemsGet struct {
Count int64 `json:"count"`
Collections []CollectionListItemGet `json:"collections"`
}
type CollectionListItemGet struct {
ID uint `json:"id"`
Name string `json:"name"`
Books []CollectionListBookItemGet `json:"books"`
}
type CollectionListBookItemGet struct {
ID uint `json:"id"`
Title string `json:"title"`
CoverPath string `json:"coverPath"`