Add position for book in collection
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user