Add support for schedules (#137)
Reviewed-on: #137
This commit was merged in pull request #137.
This commit is contained in:
@@ -29,7 +29,8 @@ type Task struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Reward float64 `json:"reward"`
|
||||
Assigned *int `json:"assigned"` // Pointer to allow null
|
||||
Assigned *int `json:"assigned"`
|
||||
Schedule *string `json:"schedule"`
|
||||
}
|
||||
|
||||
type Allowance struct {
|
||||
@@ -68,6 +69,7 @@ type CreateTaskRequest struct {
|
||||
Name string `json:"name" binding:"required"`
|
||||
Reward float64 `json:"reward"`
|
||||
Assigned *int `json:"assigned"`
|
||||
Schedule *string `json:"schedule"`
|
||||
}
|
||||
|
||||
type CreateTaskResponse struct {
|
||||
|
||||
Reference in New Issue
Block a user