Add support for colour attribute on allowances in backend (#77)
Closes #76 Reviewed-on: #77
This commit was merged in pull request #77.
This commit is contained in:
@@ -36,18 +36,21 @@ type Allowance struct {
|
||||
Target float64 `json:"target"`
|
||||
Progress float64 `json:"progress"`
|
||||
Weight float64 `json:"weight"`
|
||||
Colour string `json:"colour"`
|
||||
}
|
||||
|
||||
type CreateAllowanceRequest struct {
|
||||
Name string `json:"name"`
|
||||
Target float64 `json:"target"`
|
||||
Weight float64 `json:"weight"`
|
||||
Colour string `json:"colour"`
|
||||
}
|
||||
|
||||
type UpdateAllowanceRequest struct {
|
||||
Name string `json:"name"`
|
||||
Target float64 `json:"target"`
|
||||
Weight float64 `json:"weight"`
|
||||
Colour string `json:"colour"`
|
||||
}
|
||||
|
||||
type BulkUpdateAllowanceRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user