gatewayip.go 854 B

1234567891011121314151617181920212223
  1. package model
  2. import (
  3. "time"
  4. )
  5. type Gatewayip struct {
  6. Id int `gorm:"primary" json:"id" form:"id"`
  7. HostId int `gorm:"not null" json:"hostId" form:"hostId"`
  8. Ip string `gorm:"not null" json:"ip" form:"ip"`
  9. Name string `gorm:"null" json:"name" form:"name"`
  10. NodeArea string `gorm:"null" json:"nodeArea" form:"nodeArea"`
  11. Operator int `gorm:"not null;default:1" json:"operator" form:"operator"`
  12. BanOverseas int `gorm:"null;default:0" json:"banOverseas" form:"banOverseas"`
  13. BanUdp int `gorm:"null;default:0" json:"banUdp" form:"banUdp"`
  14. Comment string `gorm:"null" json:"comment" form:"comment"`
  15. CreatedAt time.Time `json:"createdAt" form:"createdAt"`
  16. UpdatedAt time.Time `json:"updatedAt" form:"updatedAt"`
  17. }
  18. func (m *Gatewayip) TableName() string {
  19. return "shd_waf_gateway_ip"
  20. }