33 lines
2.6 KiB
Go
33 lines
2.6 KiB
Go
package model
|
|
|
|
// ChartGraph 图表-G6关系图数据对象 chart_graph
|
|
type ChartGraph struct {
|
|
RowID int64 `json:"rowId,omitempty" gorm:"column:row_id;primaryKey;autoIncrement"` // 记录ID
|
|
RowType string `json:"rowType" gorm:"row_type"` // 记录类型
|
|
RowGroup string `json:"rowGroup" gorm:"row_group"` // 记录组名
|
|
ID string `json:"id" gorm:"id"` // 元素ID
|
|
Type string `json:"type" gorm:"type"` // node/combo 类型
|
|
Depth int64 `json:"depth" gorm:"depth"` // node/combo 深度
|
|
X float64 `json:"x" gorm:"x"` // node/combo 横向坐标
|
|
Y float64 `json:"y" gorm:"y"` // node/combo 纵向坐标
|
|
Size string `json:"size" gorm:"size"` // node/combo 大小-JSON数组
|
|
Icon string `json:"icon" gorm:"icon"` // node-部分类型支持图标JSON配置
|
|
Img string `json:"img" gorm:"img"` // node-img 图片
|
|
ClipCfg string `json:"clipCfg" gorm:"clip_cfg"` // node-img 图片裁剪JSON配置
|
|
Direction string `json:"direction" gorm:"direction"` // node-triangle 三角形的方向
|
|
Source string `json:"source" gorm:"source"` // edge-边起始
|
|
Target string `json:"target" gorm:"target"` // edge-边目标
|
|
ComboId string `json:"comboId" gorm:"combo_id"` // combo-分组
|
|
Padding string `json:"padding" gorm:"padding"` // combo-JSON分组内边距
|
|
ParentId string `json:"parentId" gorm:"parent_id"` // combo-父级分组
|
|
Children string `json:"children" gorm:"children"` // combo-JSON分组内含元素
|
|
Style string `json:"style" gorm:"style"` // 元素样式-JONS配置
|
|
Label string `json:"label" gorm:"label"` // 标签文本
|
|
LabelCfg string `json:"labelCfg" gorm:"label_cfg"` // 标签文本-JSON配置
|
|
}
|
|
|
|
// TableName 表名称
|
|
func (*ChartGraph) TableName() string {
|
|
return "chart_graph"
|
|
}
|