globallimit.go 432 B

1234567891011121314151617181920212223
  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. TcpLimitRuleId int
  9. UdpLimitRuleId int
  10. WebLimitRuleId int
  11. GatewayGroupId int
  12. GlobalLimitName string
  13. Comment string
  14. ExpiredAt int64
  15. createdAt time.Time
  16. updatedAt time.Time
  17. }
  18. func (m *GlobalLimit) TableName() string {
  19. return "shd_waf"
  20. }