webforwarding.go 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. package model
  2. type WebForwarding struct {
  3. Id int `gorm:"primary"`
  4. HostId int `gorm:"not null"`
  5. RuleId int `gorm:"not null"`
  6. Tag string `gorm:"null"`
  7. Port string `gorm:"not null"`
  8. Domain string `gorm:"null"`
  9. CustomHost string `gorm:"null"`
  10. WafGatewayGroupId int `gorm:"not null"`
  11. WebLimitRuleId int `gorm:"not null"`
  12. CcCount int `gorm:"null"`
  13. CcDuration string `gorm:"null"`
  14. CcBlockCount int `gorm:"null"`
  15. CcBlockDuration string `gorm:"null"`
  16. Cc4xxCount int `gorm:"null"`
  17. Cc4xxDuration string `gorm:"null"`
  18. Cc4xxBlockCount int `gorm:"null"`
  19. Cc4xxBlockDuration string `gorm:"null"`
  20. Cc5xxCount int `gorm:"null"`
  21. Cc5xxDuration string `gorm:"null"`
  22. Cc5xxBlockCount int `gorm:"null"`
  23. Cc5xxBlockDuration string `gorm:"null"`
  24. IsHttps int `gorm:"null"`
  25. Comment string `gorm:"null"`
  26. }
  27. func (m *WebForwarding) TableName() string {
  28. return "shd_waf_web"
  29. }