Initial Template structure

This commit is contained in:
Ian Gulliver
2022-03-16 00:03:27 +00:00
parent 8621abfa62
commit de51449f7d
2 changed files with 18 additions and 24 deletions

View File

@@ -1,8 +1,22 @@
package main
import "time"
type Template struct {
Id string
Test string
Id string `json:"id"`
Items []*Item `json:"items"`
}
type Item struct {
Id string `json:"id"`
Check *Check `json:"check,omitempty"`
}
type Check struct {
Text string `json:"text"`
Owner string `json:"owner"`
Completed *time.Time `json:"completed"`
}
func (t *Template) GetType() string {