Rename endpoints (#42)

Closes #39

Reviewed-on: #42
This commit was merged in pull request #42.
This commit is contained in:
2025-05-14 17:14:58 +02:00
parent 790ee3c622
commit 1589bc9422
6 changed files with 125 additions and 125 deletions

View File

@@ -13,12 +13,12 @@ type UserWithAllowance struct {
Allowance int `json:"allowance"`
}
type Allowance struct {
type History struct {
Allowance int `json:"allowance"`
Timestamp time.Time `json:"timestamp"`
}
type PostAllowance struct {
type PostHistory struct {
Allowance int `json:"allowance"`
}
@@ -30,7 +30,7 @@ type Task struct {
Assigned *int `json:"assigned"` // Pointer to allow null
}
type Goal struct {
type Allowance struct {
ID int `json:"id"`
Name string `json:"name"`
Target int `json:"target"`
@@ -38,7 +38,7 @@ type Goal struct {
Weight int `json:"weight"`
}
type CreateGoalRequest struct {
type CreateAllowanceRequest struct {
Name string `json:"name"`
Target int `json:"target"`
Weight int `json:"weight"`