Update FrequencyType to use enum in Chore and ChoreReq struct
This commit is contained in:
parent
a65da84f08
commit
ce3ee9e9dc
2 changed files with 18 additions and 2 deletions
|
@ -33,7 +33,7 @@ type ThingTrigger struct {
|
|||
|
||||
type ChoreReq struct {
|
||||
Name string `json:"name" binding:"required"`
|
||||
FrequencyType string `json:"frequencyType"`
|
||||
FrequencyType chModel.FrequencyType `json:"frequencyType"`
|
||||
ID int `json:"id"`
|
||||
DueDate string `json:"dueDate"`
|
||||
Assignees []chModel.ChoreAssignees `json:"assignees"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue