echo-todos/model/model.go

10 lines
138 B
Go
Raw Permalink Normal View History

2024-08-19 12:56:20 +00:00
package model
type Todo struct {
ID int `json:"id"`
Title string `json:"title"`
Done bool `json:"done"`
}
type Todos []Todo