27 lines
519 B
Go
27 lines
519 B
Go
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"`
|
|
}
|