mirror of
https://gitee.com/shikong-sk/gofiber-study
synced 2025-02-23 23:32:15 +08:00
添加 waf
添加 访问频率限制测试
This commit is contained in:
parent
d152df3a1d
commit
f98e4af0a7
14
model/generic/models/waf.go
Normal file
14
model/generic/models/waf.go
Normal file
@ -0,0 +1,14 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"gofiber.study.skcks.cn/common/time"
|
||||
)
|
||||
|
||||
type Waf struct {
|
||||
Ip string `xorm:"not null pk VARCHAR(255)" json:"ip"`
|
||||
CreateTime time.Time `xorm:"not null DATETIME(6) created" json:"createTime"`
|
||||
}
|
||||
|
||||
func (m *Waf) TableName() string {
|
||||
return "waf"
|
||||
}
|
Loading…
Reference in New Issue
Block a user