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"` InformationType string `json:"InformationType"` //信息发布类型 Vale int `json:"UseState"` //占比 } func (m *Information) TableName() string { return "information" }