123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- package chart_theme
- import "time"
- type ChartTheme struct {
- ChartThemeID int `gorm:"primaryKey;column:chart_theme_id" json:"-"`
- ChartThemeName string `gorm:"column:chart_theme_name" json:"chartThemeName"`
- ChartThemeTypeID int `gorm:"column:chart_theme_type_id" json:"chartThemeTypeId"`
- ChartImage string `gorm:"column:chart_image" json:"chartImage"`
- Config string `gorm:"column:config" json:"config"`
- IsDelete uint8 `gorm:"column:is_delete" json:"isDelete"`
- SysUserID int `gorm:"column:sys_user_id" json:"sysUserId"`
- SysUserRealName string `gorm:"column:sys_user_real_name" json:"sysUserRealName"`
- IsSystemTheme uint8 `gorm:"column:is_system_theme" json:"isSystemTheme"`
- ModifyTime time.Time `gorm:"column:modify_time" json:"modifyTime"`
- CreateTime time.Time `gorm:"column:create_time" json:"createTime"`
- }
- func (m *ChartTheme) TableName() string {
- return "chart_theme"
- }
- var ChartThemeColumns = struct {
- ChartThemeID string
- ChartThemeName string
- ChartThemeTypeID string
- ChartImage string
- Config string
- IsDelete string
- SysUserID string
- SysUserRealName string
- IsSystemTheme string
- ModifyTime string
- CreateTime string
- }{
- ChartThemeID: "chart_theme_id",
- ChartThemeName: "chart_theme_name",
- ChartThemeTypeID: "chart_theme_type_id",
- ChartImage: "chart_image",
- Config: "config",
- IsDelete: "is_delete",
- SysUserID: "sys_user_id",
- SysUserRealName: "sys_user_real_name",
- IsSystemTheme: "is_system_theme",
- ModifyTime: "modify_time",
- CreateTime: "create_time",
- }
- type ColorsOptions []string
- type LegendOptions struct {
- VerticalAlign string `json:"verticalAlign"`
- ItemStyle struct {
- Color string `json:"color"`
- FontSize int `json:"fontSize"`
- Cursor string `json:"cursor"`
- FontWeight string `json:"fontWeight"`
- TextOverflow string `json:"textOverflow"`
- } `json:"itemStyle"`
- }
- type TitleOptions struct {
- Align string `json:"align"`
- Style struct {
- Color string `json:"color"`
- FontSize int `json:"fontSize"`
- } `json:"style"`
- }
- type MarkerOptions struct {
- Style struct {
- Color string `json:"color"`
- FontSize int `json:"fontSize"`
- } `json:"style"`
- }
- type AxisOptions struct {
- Style struct {
- Color string `json:"color"`
- FontSize int `json:"fontSize"`
- } `json:"style"`
- }
- type DrawOption struct {
- PlotBackgroundColor string `json:"plotBackgroundColor"`
- }
- type LineOptions struct {
- DashStyle string `json:"dashStyle"`
- LineWidth int `json:"lineWidth"`
- LineType string `json:"lineType"`
- Radius float64 `json:"radius"`
- }
- type OldChartOptions struct {
- ColorsOptions []string `json:"colorsOptions"`
- LineOptions LineOptions `json:"lineOptions"`
- LegendOptions interface{} `json:"legendOptions"`
- TitleOptions interface{} `json:"titleOptions"`
- MarkerOptions interface{} `json:"markerOptions"`
- XAxisOptions interface{} `json:"xAxisOptions"`
- YAxisOptions interface{} `json:"yAxisOptions"`
- DrawOption interface{} `json:"drawOption"`
- LineOptionList []LineStyleOptions `json:"lineOptionList"`
- }
- type NewChartOptions struct {
- OldChartOptions
- LineOptionList []NewLineOptions `json:"lineOptionList"`
- }
- type NewLineOptions struct {
- LineOptions
- Color string `json:"color"`
- DataMark string `json:"dataMark"`
- MarkType string `json:"markType"`
- MarkSize int `json:"markSize"`
- MarkColor string `json:"markColor"`
- }
- type LineStyleOptions struct {
- DashStyle string `json:"dashStyle"`
- Color string `json:"color"`
- LineWidth int `json:"lineWidth"`
- LineType string `json:"lineType"`
- Radius int `json:"radius"`
- DataMark string `json:"dataMark"`
- MarkType string `json:"markType"`
- MarkSize int `json:"markSize"`
- MarkColor string `json:"markColor"`
- }
|