This commit is contained in:
Liang Ding 2023-03-03 10:49:45 +08:00
parent d3f8da753b
commit a78f0d4b78
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
11 changed files with 28 additions and 184 deletions

View file

@ -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 {