This commit is contained in:
Liang Ding 2022-10-02 11:17:12 +08:00
parent 47d201eb3f
commit 960a60ac4c
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 15 additions and 337 deletions

View file

@ -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) {