gatewayip.go 570 B

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