Create initial backend (#7)
Closes #3 Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
26
backend/dto.go
Normal file
26
backend/dto.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user