Skip to content

Commit 18abfcd

Browse files
committed
return additional note attribute.
1 parent 7fc52aa commit 18abfcd

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

main.go

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,28 @@ type SettingContentJSON struct {
7878
}
7979

8080
type NoteContentYAML struct {
81-
Title string `yaml:"title"`
82-
Text string `json:"text"`
83-
ItemReferences []ItemReferenceYAML `yaml:"references"`
84-
AppData AppDataContentYAML `yaml:"appData"`
85-
PreviewPlain string `yaml:"preview_plain"`
86-
Trashed *bool `yaml:"trashed,omitempty"`
81+
Title string `yaml:"title"`
82+
Text string `json:"text"`
83+
ItemReferences []ItemReferenceYAML `yaml:"references"`
84+
AppData AppDataContentYAML `yaml:"appData"`
85+
References []string `yaml:"references"`
86+
EditorIdentifier string `yaml:"editorIdentifier"`
87+
PreviewPlain string `yaml:"preview_plain"`
88+
PreviewHtml string `yaml:"preview_html"`
89+
Spellcheck bool `yaml:"spellcheck"`
90+
Trashed *bool `yaml:"trashed,omitempty"`
8791
}
8892

8993
type NoteContentJSON struct {
90-
Title string `json:"title"`
91-
Text string `json:"text"`
92-
ItemReferences []ItemReferenceJSON `json:"references"`
93-
AppData AppDataContentJSON `json:"appData"`
94-
PreviewPlain string `json:"preview_plain"`
95-
Trashed *bool `json:"trashed,omitempty"`
94+
Title string `json:"title"`
95+
Text string `json:"text"`
96+
ItemReferences []ItemReferenceJSON `json:"references"`
97+
AppData AppDataContentJSON `json:"appData"`
98+
EditorIdentifier string `json:"editorIdentifier"`
99+
PreviewPlain string `json:"preview_plain"`
100+
PreviewHtml string `json:"preview_html"`
101+
Spellcheck bool `json:"spellcheck"`
102+
Trashed *bool `json:"trashed,omitempty"`
96103
}
97104

98105
type TagJSON struct {

0 commit comments

Comments
 (0)