Collection: new widget to add book to collection
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user