Add endpoint to create allowance (#34)

Closes #11

Reviewed-on: #34
This commit was merged in pull request #34.
This commit is contained in:
2025-05-13 13:52:10 +02:00
parent 44d85fc155
commit 62f43d7eb3
6 changed files with 81 additions and 4 deletions

View File

@@ -5,11 +5,21 @@ type User struct {
Name string `json:"name"`
}
type UserWithAllowance struct {
ID int `json:"id"`
Name string `json:"name"`
Allowance int `json:"allowance"`
}
type Allowance struct {
Allowance int `json:"allowance"`
Goals []Goal `json:"goals"`
}
type PostAllowance struct {
Allowance int `json:"allowance"`
}
// Task represents a task in the system.
type Task struct {
ID int `json:"id"`