12345678910111213141516171819202122 |
- package model
- import "time"
- type GlobalLimit struct {
- Id int `gorm:"primary"`
- HostId int
- Name string
- RuleId int
- GroupId int
- Uid int
- CdnUid int
- Comment string
- State bool `gorm:"column:state" default:"true"`
- ExpiredAt int64 `gorm:"column:expired_at"`
- createdAt time.Time
- updatedAt time.Time
- }
- func (m *GlobalLimit) TableName() string {
- return "shd_waf"
- }
|