package devices type GateWay struct { ID uint `gorm:"primarykey" json:"ID"` //主键ID } func (GateWay) TableName() string { return "dev_gateway" }