system.go 385 B

12345678910111213141516171819
  1. package models
  2. type SampleMode struct {
  3. BoxId string `gorm:"column:box_id;primary_key;"`
  4. Mode int `gorm:"column:mode"`
  5. }
  6. type SampleScene struct {
  7. BoxId string `gorm:"column:box_id;primary_key;"`
  8. Scene int `gorm:"column:scene"`
  9. }
  10. func (SampleMode) TableName() string {
  11. return "t_statistics_mode"
  12. }
  13. func (SampleScene) TableName() string {
  14. return "t_statistics_scene"
  15. }