Book form: can now edit an existing book
This commit is contained in:
@@ -10,15 +10,15 @@ type BookSearchGetParam struct {
|
||||
Inventaire bool `form:"inventaire"`
|
||||
}
|
||||
|
||||
type BookPostCreate struct {
|
||||
Title string `json:"title" binding:"required,max=300"`
|
||||
Author string `json:"author" binding:"max=100"`
|
||||
ISBN string `json:"isbn" binding:"max=18"`
|
||||
InventaireID string `json:"inventaireid" binding:"max=50"`
|
||||
OpenLibraryId string `json:"openlibraryid" binding:"max=50"`
|
||||
ShortDescription string `json:"shortdescription" binding:"max=300"`
|
||||
Summary string `json:"summary"`
|
||||
CoverID uint `json:"coverId"`
|
||||
type BookFields struct {
|
||||
Title *string `json:"title" binding:"omitempty,max=300"`
|
||||
Author *string `json:"author" binding:"omitempty,max=100"`
|
||||
ISBN *string `json:"isbn" binding:"omitempty,max=18"`
|
||||
InventaireID *string `json:"inventaireid" binding:"omitempty,max=50"`
|
||||
OpenLibraryId *string `json:"openlibraryid" binding:"omitempty,max=50"`
|
||||
ShortDescription *string `json:"shortdescription" binding:"omitempty,max=300"`
|
||||
Summary *string `json:"summary"`
|
||||
CoverID *uint `json:"coverId"`
|
||||
}
|
||||
|
||||
type BookPostImport struct {
|
||||
|
||||
Reference in New Issue
Block a user