Create Template working
This commit is contained in:
10
template.go
10
template.go
@@ -19,6 +19,12 @@ type Check struct {
|
||||
Completed *time.Time `json:"completed"`
|
||||
}
|
||||
|
||||
func NewTemplate() *Template {
|
||||
return &Template{
|
||||
Items: []*Item{},
|
||||
}
|
||||
}
|
||||
|
||||
func (t *Template) GetType() string {
|
||||
return "template"
|
||||
}
|
||||
@@ -26,3 +32,7 @@ func (t *Template) GetType() string {
|
||||
func (t *Template) GetId() string {
|
||||
return t.Id
|
||||
}
|
||||
|
||||
func (t *Template) IsValid() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user