mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-11 17:54:20 +01:00
This commit is contained in:
parent
47d201eb3f
commit
960a60ac4c
3 changed files with 15 additions and 337 deletions
|
|
@ -64,16 +64,16 @@ func (block *Block) IsContainerBlock() bool {
|
|||
}
|
||||
|
||||
type Path struct {
|
||||
ID string `json:"id"` // 块 ID
|
||||
Box string `json:"box"` // 块 Box
|
||||
Name string `json:"name"` // 当前路径
|
||||
Type string `json:"type"` // "path"
|
||||
NodeType string `json:"nodeType"` // 节点类型
|
||||
SubType string `json:"subType"` // 节点子类型
|
||||
Blocks []*Block `json:"blocks"` // 子块节点
|
||||
Children []*Path `json:"children"` // 子路径节点
|
||||
Depth int `json:"depth"` // 层级深度
|
||||
Count int `json:"count"` // 子块计数
|
||||
ID string `json:"id"` // 块 ID
|
||||
Box string `json:"box"` // 块 Box
|
||||
Name string `json:"name"` // 当前路径
|
||||
Type string `json:"type"` // "path"
|
||||
NodeType string `json:"nodeType"` // 节点类型
|
||||
SubType string `json:"subType"` // 节点子类型
|
||||
Blocks []*Block `json:"blocks,omitempty"` // 子块节点
|
||||
Children []*Path `json:"children,omitempty"` // 子路径节点
|
||||
Depth int `json:"depth"` // 层级深度
|
||||
Count int `json:"count"` // 子块计数
|
||||
}
|
||||
|
||||
func RecentUpdatedBlocks() (ret []*Block) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue