mirror of
https://github.com/appdev/siyuan-unlock.git
synced 2026-03-05 08:17:56 +08:00
♻️ Refactor av data structure
This commit is contained in:
parent
e24a7f5d01
commit
e66fc9c096
@ -130,7 +130,6 @@ type View struct {
|
||||
ID string `json:"id"` // 视图 ID
|
||||
Name string `json:"name"` // 视图名称
|
||||
|
||||
LayoutID string `json:"layoutID"` // 当前布局 ID
|
||||
LayoutType LayoutType `json:"type"` // 当前布局类型
|
||||
Table *LayoutTable `json:"table,omitempty"` // 表格布局
|
||||
}
|
||||
@ -144,15 +143,13 @@ const (
|
||||
|
||||
func NewView() *View {
|
||||
name := "Table"
|
||||
layoutID := ast.NewNodeID()
|
||||
return &View{
|
||||
ID: ast.NewNodeID(),
|
||||
Name: name,
|
||||
LayoutID: layoutID,
|
||||
LayoutType: LayoutTypeTable,
|
||||
Table: &LayoutTable{
|
||||
Spec: 0,
|
||||
ID: layoutID,
|
||||
ID: ast.NewNodeID(),
|
||||
Filters: []*ViewFilter{},
|
||||
Sorts: []*ViewSort{},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user