package model import "gorm.io/gorm" type Information struct { gorm.Model } type LargeController struct { Id int `json:"id"` DeviceName string `json:"DeviceName"` //设备名称 UseState int `json:"UseState"` //设备使用状态 } type InformationCount struct { Id int `json:"id"` DeviceName string `json:"DeviceName"` //设备名称 State int `json:"State"` //设备使用状态 Date string `json:"Date"` //日期 } func (m *Information) TableName() string { return "information" }