package model import "time" type GatewayGroup struct { Id int `gorm:"primary" json:"id" form:"id"` HostId int `gorm:"null" json:"hostId" form:"hostId"` RuleId int `gorm:"not null" json:"ruleId" form:"ruleId"` BanUdp int `gorm:"null" json:"banUdp" form:"banUdp"` BanOverseas int `gorm:"null" json:"banOverseas" form:"banOverseas"` Name string `gorm:"null" json:"name" form:"name"` Operator int `gorm:"not null" json:"operator" form:"operator"` Comment string `gorm:"null" json:"comment" form:"comment"` CreatedAt time.Time `json:"createdAt" form:"createdAt"` UpdatedAt time.Time `json:"updatedAt" form:"updatedAt"` } func (m *GatewayGroup) TableName() string { return "shd_waf_gateway_group" }