Collection: new widget to add book to collection

This commit is contained in:
2026-04-04 23:15:44 +02:00
parent c7abbfe4d4
commit 2552ba8e94
11 changed files with 279 additions and 16 deletions

View File

@@ -5,9 +5,17 @@ type AuthorGet struct {
Description string `json:"description"`
}
type InventaireSearchType int
const (
NoInventaireSearch InventaireSearchType = iota
InventaireIfNothingFound
ForceInventaireSearch
)
type BookSearchGetParam struct {
Lang string `form:"lang" binding:"max=5"`
Inventaire bool `form:"inventaire"`
Lang string `form:"lang" binding:"max=5"`
Inventaire InventaireSearchType `form:"inventaire"`
}
type BookFields struct {
@@ -39,6 +47,10 @@ type CollectionFields struct {
Name string `json:"name" binding:"required,max=300"`
}
type CollectionBook struct {
BookID uint `json:"bookId" binding:"required"`
}
type FileInfoPost struct {
FileID uint `json:"fileId"`
FilePath string `json:"filepath"`