实现WAF策略部分功能

This commit is contained in:
刘祥超
2020-10-06 21:02:15 +08:00
parent 1d946fb08d
commit 4b4b838c0b
10 changed files with 839 additions and 60 deletions

View File

@@ -4,6 +4,7 @@ package models
type HTTPFirewallRule struct {
Id uint32 `field:"id"` // ID
IsOn uint8 `field:"isOn"` // 是否启用
Description string `field:"description"` // 说明
Param string `field:"param"` // 参数
Operator string `field:"operator"` // 操作符
Value string `field:"value"` // 对比值
@@ -18,6 +19,7 @@ type HTTPFirewallRule struct {
type HTTPFirewallRuleOperator struct {
Id interface{} // ID
IsOn interface{} // 是否启用
Description interface{} // 说明
Param interface{} // 参数
Operator interface{} // 操作符
Value interface{} // 对比值