globallimit.go 345 B

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