Add endpoint to get allowance history (#37)

Closes #12

Reviewed-on: #37
This commit was merged in pull request #37.
This commit is contained in:
2025-05-14 15:27:29 +02:00
parent 2486bbf1ec
commit 4355e1b1b7
8 changed files with 106 additions and 39 deletions

View File

@@ -1,5 +1,7 @@
package main
import "time"
type User struct {
ID int `json:"id"`
Name string `json:"name"`
@@ -12,8 +14,8 @@ type UserWithAllowance struct {
}
type Allowance struct {
Allowance int `json:"allowance"`
Goals []Goal `json:"goals"`
Allowance int `json:"allowance"`
Timestamp time.Time `json:"timestamp"`
}
type PostAllowance struct {