dev_gateway.go 152 B

123456789
  1. package devices
  2. type GateWay struct {
  3. ID uint `gorm:"primarykey" json:"ID"` //主键ID
  4. }
  5. func (GateWay) TableName() string {
  6. return "dev_gateway"
  7. }