27 lines
426 B
Go
27 lines
426 B
Go
|
package model
|
||
|
|
||
|
type Note struct {
|
||
|
EntryBase
|
||
|
meta NoteMetaData
|
||
|
}
|
||
|
|
||
|
type NoteMetaData struct {
|
||
|
Content string `owl:"inputType=text widget=textarea"`
|
||
|
}
|
||
|
|
||
|
func (e *Note) Title() string {
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (e *Note) Content() EntryContent {
|
||
|
return EntryContent(e.meta.Content)
|
||
|
}
|
||
|
|
||
|
func (e *Note) MetaData() interface{} {
|
||
|
return &e.meta
|
||
|
}
|
||
|
|
||
|
func (e *Note) SetMetaData(metaData interface{}) {
|
||
|
e.meta = *metaData.(*NoteMetaData)
|
||
|
}
|