gatewaygroupip.go 689 B

123456789101112131415161718
  1. package model
  2. import "time"
  3. type GateWayGroupIp struct {
  4. Id int `gorm:"primary" json:"id" form:"id"`
  5. GatewayGroupId int `gorm:"not null" json:"gatewayGroupId" form:"gatewayGroupId"`
  6. Ip string `gorm:"not null" json:"ip" form:"ip"`
  7. Tag string `gorm:"null" json:"tag" form:"tag"`
  8. Comment string `gorm:"null" json:"comment" form:"comment"`
  9. OriginPlace string `gorm:"null" json:"originPlace" form:"originPlace"`
  10. CreatedAt time.Time `json:"createdAt" form:"createdAt"`
  11. UpdatedAt time.Time `json:"updatedAt" form:"updatedAt"`
  12. }
  13. func (m *GateWayGroupIp) TableName() string {
  14. return "shd_waf_gateway_group_ip"
  15. }