Add bulk allowance edit endpoint (#56)

Closes #15

Reviewed-on: #56
This commit was merged in pull request #56.
This commit is contained in:
2025-05-18 09:24:36 +02:00
parent 79dcfbc02c
commit da17f351de
4 changed files with 160 additions and 27 deletions

View File

@@ -31,23 +31,28 @@ type Task struct {
}
type Allowance struct {
ID int `json:"id"`
Name string `json:"name"`
Target int `json:"target"`
Progress int `json:"progress"`
Weight int `json:"weight"`
ID int `json:"id"`
Name string `json:"name"`
Target int `json:"target"`
Progress int `json:"progress"`
Weight float64 `json:"weight"`
}
type CreateAllowanceRequest struct {
Name string `json:"name"`
Target int `json:"target"`
Weight int `json:"weight"`
Name string `json:"name"`
Target int `json:"target"`
Weight float64 `json:"weight"`
}
type UpdateAllowanceRequest struct {
Name string `json:"name"`
Target int `json:"target"`
Weight int `json:"weight"`
Name string `json:"name"`
Target int `json:"target"`
Weight float64 `json:"weight"`
}
type BulkUpdateAllowanceRequest struct {
ID int `json:"id"`
Weight float64 `json:"weight"`
}
type CreateGoalResponse struct {