Refactor: make only one API route to update userbooks
This commit is contained in:
@@ -21,6 +21,14 @@ type BookPostImport struct {
|
||||
Lang string `json:"lang" binding:"required,max=5"`
|
||||
}
|
||||
|
||||
type UserBookPutUpdate struct {
|
||||
Read *bool `json:"read"`
|
||||
EndDate *string `json:"endDate"`
|
||||
WantRead *bool `json:"wantread"`
|
||||
Rating *int `json:"rating"`
|
||||
StartDate *string `json:"startDate"`
|
||||
}
|
||||
|
||||
type FileInfoPost struct {
|
||||
FileID uint `json:"fileId"`
|
||||
FilePath string `json:"filepath"`
|
||||
|
||||
Reference in New Issue
Block a user