package multiple_graph_config import ( "time" ) // MultipleGraphConfig 多图配置 type MultipleGraphConfig struct { MultipleGraphConfigID uint32 `gorm:"primaryKey;column:multiple_graph_config_id;type:int(9) unsigned;not null" json:"-"` // 多图的配置id EdbInfoIDA int `gorm:"column:edb_info_id_a;type:int(9);default:null;default:0" json:"edbInfoIdA"` // 指标A EdbInfoIDB int `gorm:"column:edb_info_id_b;type:int(9);default:null;default:0" json:"edbInfoIdB"` // 指标B Curve string `gorm:"column:curve;type:text;default:null" json:"curve"` // 曲线图配置 Correlation string `gorm:"column:correlation;type:text;default:null" json:"correlation"` // 相关性配置 RollingCorrelation string `gorm:"column:rolling_correlation;type:text;default:null" json:"rollingCorrelation"` // 滚动相关性配置 SysUserID int `gorm:"column:sys_user_id;type:int(9);default:null;default:0" json:"sysUserId"` // 操作人id SysUserRealName string `gorm:"column:sys_user_real_name;type:varchar(64);default:null;default:''" json:"sysUserRealName"` // 操作人真实姓名 ModifyTime time.Time `gorm:"column:modify_time;type:timestamp;default:null;default:CURRENT_TIMESTAMP" json:"modifyTime"` // 最近一次修改时间 CreateTime time.Time `gorm:"column:create_time;type:datetime;default:null" json:"createTime"` // 添加时间 } // TableName get sql table name.获取数据库表名 func (m *MultipleGraphConfig) TableName() string { return "multiple_graph_config" } // MultipleGraphConfigColumns get sql column name.获取数据库列名 var MultipleGraphConfigColumns = struct { MultipleGraphConfigID string EdbInfoIDA string EdbInfoIDB string Curve string Correlation string RollingCorrelation string SysUserID string SysUserRealName string ModifyTime string CreateTime string }{ MultipleGraphConfigID: "multiple_graph_config_id", EdbInfoIDA: "edb_info_id_a", EdbInfoIDB: "edb_info_id_b", Curve: "curve", Correlation: "correlation", RollingCorrelation: "rolling_correlation", SysUserID: "sys_user_id", SysUserRealName: "sys_user_real_name", ModifyTime: "modify_time", CreateTime: "create_time", }