globallimit.go 453 B

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