mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
This commit is contained in:
parent
d3f8da753b
commit
a78f0d4b78
11 changed files with 28 additions and 184 deletions
|
|
@ -35,6 +35,15 @@ type Column struct {
|
|||
ID string `json:"id"` // 列 ID
|
||||
Name string `json:"name"` // 列名
|
||||
Type ColumnType `json:"type"` // 列类型
|
||||
|
||||
AttributeViewID string `json:"attributeViewId"` // 关联的属性视图 ID
|
||||
RelationColumnID string `json:"relationColumnId"` // 目标关联列 ID
|
||||
Options []*ColumnSelectOption `json:"options"` // 选项列表
|
||||
}
|
||||
|
||||
type ColumnSelectOption struct {
|
||||
Name string `json:"name"`
|
||||
Color string `json:"color"`
|
||||
}
|
||||
|
||||
func NewColumn(name string, columnType ColumnType) *Column {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue