globallimit.go 388 B

123456789101112131415161718192021
  1. package model
  2. import "time"
  3. type GlobalLimit struct {
  4. Id int `gorm:"primary"`
  5. HostId int
  6. RuleId int
  7. TcpLimitRuleId int
  8. UdpLimitRuleId int
  9. WebLimitRuleId int
  10. GatewayGroupId int
  11. GlobalLimitName string
  12. Comment string
  13. createdAt time.Time
  14. updatedAt time.Time
  15. }
  16. func (m *GlobalLimit) TableName() string {
  17. return "shd_waf"
  18. }