Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: Attribute View (Database) https://github.com/siyuan-note/siyuan/issues/2829

Daniel8cea4b01b8a7
diff --git a/kernel/av/cell.go b/kernel/av/cell.go
index 511978f35a..e7dd26c34c 100644
--- a/kernel/av/cell.go
+++ b/kernel/av/cell.go
@@ -17,6 +17,8 @@
package av
type Cell struct {
- ID string `json:"id"`
- Value string `json:"value"`
+ ID string `json:"id"`
+ Value string `json:"value"`
+ Color string `json:"color"`
+ BgColor string `json:"bgColor"`
}
diff --git a/kernel/av/column.go b/kernel/av/column.go
index e0dbf70c32..cee0576562 100644
--- a/kernel/av/column.go
+++ b/kernel/av/column.go
@@ -35,6 +35,10 @@ type Column struct {
ID string `json:"id"` // 列 ID
Name string `json:"name"` // 列名
Type ColumnType `json:"type"` // 列类型
+ Icon string `json:"icon"` // 列图标
+ Wrap bool `json:"wrap"` // 是否换行
+
+ // 以下是某些列类型的特有属性
AttributeViewID string `json:"attributeViewId"` // 关联的属性视图 ID
RelationColumnID string `json:"relationColumnId"` // 目标关联列 ID