feat:1、实现文档自动保存

2、实现记住上次打开的文档,当文档编辑时会自动定位到上次打开的文档。
This commit is contained in:
lifei6671
2018-08-17 17:33:45 +08:00
parent cd61aa14db
commit bb7d1c1503
12 changed files with 245 additions and 123 deletions

View File

@@ -17,8 +17,8 @@ type DocumentTree struct {
Identify string `json:"identify"`
BookIdentify string `json:"-"`
Version int64 `json:"version"`
State *DocumentSelected `json:"state,omitempty"`
AAttrs map[string]interface{} `json:"a_attr"`
State *DocumentSelected `json:"-"`
AAttrs map[string]interface{} `json:"-"`
}
type DocumentSelected struct {
Selected bool `json:"selected"`