Refactor: make only one API route to update userbooks

This commit is contained in:
2026-03-12 16:58:59 +01:00
parent f32bb49972
commit d07f18d380
11 changed files with 279 additions and 390 deletions

View File

@@ -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"`