数据集

This commit is contained in:
XM-GO
2023-04-28 17:13:28 +08:00
parent efbf5917a7
commit e825f42fd8
6 changed files with 115 additions and 45 deletions

View File

@@ -19,16 +19,13 @@ func (VisualDataSetTable) TableName() string {
type VisualDataSetField struct {
model.BaseModelD
FieldId string `gorm:"primary_key;fieldId;comment:表id" json:"fieldId"`
TableId string `gorm:"tableId;type:varchar(64);comment:表id" json:"tableId"`
Comment string `gorm:"comment;type:varchar(64);comment:字段描述" json:"columnComment"` // 列描述
Name string `gorm:"name;type:varchar(64);comment:字段" json:"name"`
GroupType string `gorm:"group_type;type:varchar(1);comment:字段分组类型" json:"groupType"` //d 维度 g
OriginName string `gorm:"origin_name;type:varchar(50);comment:原始字段名" json:"originName"`
OriginType string `gorm:"origin_type;type:varchar(50);comment:原始字段类型" json:"originType"`
DeType int `gorm:"de_type;type:varchar(50);comment:数据源字段类型0-文本1-时间2-数值(包括小数)" json:"deType"`
DeName string `gorm:"de_name;type:varchar(50);comment:数据源查询名" json:"deName"`
ExtField int `gorm:"ext_field;type:int;comment:是否扩展字段 0否 1是" json:"extField"`
FieldId string `gorm:"primary_key;fieldId;comment:表id" json:"fieldId"`
TableId string `gorm:"tableId;type:varchar(64);comment:表id" json:"tableId"`
Name string `gorm:"name;type:varchar(64);comment:字段描述" json:"name"`
GroupType string `gorm:"group_type;type:varchar(1);comment:字段分组类型" json:"groupType"` //d 维度 g
DeType string `gorm:"de_type;type:varchar(1);comment:数据源字段类型0-文本1-时间2-数值(包括小数)" json:"deType"`
DeName string `gorm:"de_name;type:varchar(50);comment:数据源查询名" json:"deName"`
ExtField string `gorm:"ext_field;type:varchar(1);comment:是否扩展字段 0否 1是" json:"extField"`
}
func (VisualDataSetField) TableName() string {
@@ -45,3 +42,14 @@ type VisualDataSetRequest struct {
Info string `json:"info"`
Type string `json:"type"`
}
type VisualDataSetTableFun struct {
Name string `gorm:"name;type:varchar(64);comment:函数名" json:"name"`
DbType string `gorm:"db_type;type:varchar(50);comment:数据库类型" json:"dbType"` //d 维度 g
Func string `gorm:"func;type:varchar(64);comment:函数" json:"func"`
Desc string `gorm:"desc;type:varchar(255);comment:描述" json:"desc"`
}
func (VisualDataSetTableFun) TableName() string {
return "visual_data_set_table_function"
}