From 1bba2ab20580be3adeabba47407c563a65c5eec4 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 11 Jun 2025 17:40:02 +0800 Subject: [PATCH] :art: Database gallery view https://github.com/siyuan-note/siyuan/issues/10414 --- kernel/av/layout.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/kernel/av/layout.go b/kernel/av/layout.go index cfa0dd218..ccdcafa4c 100644 --- a/kernel/av/layout.go +++ b/kernel/av/layout.go @@ -16,17 +16,6 @@ package av -// Item 描述了一个项目的接口。 -// 项目可以表格行、画廊卡片或其他视图类型的实体。 -type Item interface { - - // GetBlockValue 返回主键的值。 - GetBlockValue() *Value - - // GetID 返回项目的 ID。 - GetID() string -} - // BaseLayout 描述了布局的基础结构。 type BaseLayout struct { Spec int `json:"spec"` // 布局格式版本 @@ -73,3 +62,14 @@ type BaseInstanceField struct { Rollup *Rollup `json:"rollup,omitempty"` // 汇总字段 Date *Date `json:"date,omitempty"` // 日期设置 } + +// Item 描述了一个项目的接口。 +// 项目可以表格行、画廊卡片或其他视图类型的实体。 +type Item interface { + + // GetBlockValue 返回主键的值。 + GetBlockValue() *Value + + // GetID 返回项目的 ID。 + GetID() string +}