chart_series.go 1.0 KB

12345678910111213141516171819202122232425
  1. package chart_series
  2. import "time"
  3. type ChartSeries struct {
  4. ChartSeriesId int `gorm:"primaryKey;column:chart_series_id;type:int(11);not null"`
  5. SeriesName string `description:"系列名称"`
  6. SeriesNameEn string `description:"系列英文名称"`
  7. ChartInfoId int `description:"图表ID"`
  8. ChartStyle string `description:"图表类型"`
  9. ChartColor string `description:"颜色"`
  10. ChartWidth int `description:"线条大小"`
  11. IsPoint int `description:"是否用数据点展示(0 否,1是)"`
  12. IsNumber int `description:"是否用数值展示(0 否,1是)"`
  13. IsAxis int `description:"1:左轴,0:右轴"`
  14. MaxData float64 `description:"上限"`
  15. MinData float64 `description:"下限"`
  16. IsOrder bool `description:"true:正序,false:逆序"`
  17. CreateTime time.Time `description:"创建时间"`
  18. ModifyTime time.Time `description:"修改时间"`
  19. }
  20. func (c *ChartSeries) TableName() string {
  21. return "chart_series"
  22. }