package models type SampleMode struct { BoxId string `gorm:"column:box_id;primary_key;"` Mode int `gorm:"column:mode"` } type SampleScene struct { BoxId string `gorm:"column:box_id;primary_key;"` Scene int `gorm:"column:scene"` } func (SampleMode) TableName() string { return "t_statistics_mode" } func (SampleScene) TableName() string { return "t_statistics_scene" }