Create initial backend (#7)

Closes #3

Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
2025-05-08 10:02:30 +02:00
parent 539c6412a7
commit 1baa1afb07
8 changed files with 552 additions and 1 deletions

26
backend/dto.go Normal file
View File

@@ -0,0 +1,26 @@
package main
type User struct {
ID int `json:"id"`
Name string `json:"name"`
}
type Allowance struct {
Allowance int `json:"allowance"`
Goals []Goal `json:"goals"`
}
type Schema struct {
Id int `json:"id"`
Name string `json:"name"`
Reward int `json:"reward"`
Assigned *int `json:"assigned"`
}
type Goal struct {
ID int `json:"id"`
Name string `json:"name"`
Target int `json:"target"`
Progress int `json:"progress"`
Weight int `json:"weight"`
}