https://git.jolheiser.com/todo.git
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package vikunja type Task struct { ID int `json:"id"` Title string `json:"title"` ProjectID int `json:"project_id"` Project Project `json:"-"` } type Project struct { ID int `json:"id"` Title string `json:"title"` } type NewTask struct { Title string `json:"title"` } type FinishTask struct { Done bool `json:"done"` }