From c1c5b29f79f3bfc3c5aa4a8d75d4321783fe72c7 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 3 Jul 2023 15:39:13 +0800 Subject: [PATCH] :art: Update av --- kernel/av/av.go | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/kernel/av/av.go b/kernel/av/av.go index 63ac63bcc..42930afc0 100644 --- a/kernel/av/av.go +++ b/kernel/av/av.go @@ -39,10 +39,9 @@ type AttributeView struct { Columns []*Column `json:"columns"` // 表格列名 Rows []*Row `json:"rows"` // 表格行记录 - Type AttributeViewType `json:"type"` // 属性视图类型 - Projections []string `json:"projections"` // 显示的列名 - Filters []*AttributeViewFilter `json:"filters"` // 过滤规则 - Sorts []*AttributeViewSort `json:"sorts"` // 排序规则 + Type AttributeViewType `json:"type"` // 属性视图类型 + Filters []*AttributeViewFilter `json:"filters"` // 过滤规则 + Sorts []*AttributeViewSort `json:"sorts"` // 排序规则 } // AttributeViewType 描述了属性视图的类型。 @@ -54,15 +53,14 @@ const ( func NewAttributeView(id string) *AttributeView { return &AttributeView{ - Spec: 0, - ID: id, - Name: "Table", - Columns: []*Column{{ID: ast.NewNodeID(), Name: "Block", Type: ColumnTypeBlock}}, - Rows: []*Row{}, - Type: AttributeViewTypeTable, - Projections: []string{}, - Filters: []*AttributeViewFilter{}, - Sorts: []*AttributeViewSort{}, + Spec: 0, + ID: id, + Name: "Table", + Columns: []*Column{{ID: ast.NewNodeID(), Name: "Block", Type: ColumnTypeBlock}}, + Rows: []*Row{}, + Type: AttributeViewTypeTable, + Filters: []*AttributeViewFilter{}, + Sorts: []*AttributeViewSort{}, } }