globallimit.go 366 B

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