实现IP黑白名单、国家|地区封禁、省份封禁

This commit is contained in:
GoEdgeLab
2020-11-09 10:44:00 +08:00
parent 48a3a28f32
commit 5417280163
14 changed files with 187 additions and 22 deletions

View File

@@ -12,7 +12,6 @@ type IPList struct {
State uint8 `field:"state"` // 状态
CreatedAt uint64 `field:"createdAt"` // 创建时间
Timeout string `field:"timeout"` // 默认超时时间
Version uint64 `field:"version"` // 版本
}
type IPListOperator struct {
@@ -26,7 +25,6 @@ type IPListOperator struct {
State interface{} // 状态
CreatedAt interface{} // 创建时间
Timeout interface{} // 默认超时时间
Version interface{} // 版本
}
func NewIPListOperator() *IPListOperator {