Files
EdgeAPI/internal/db/models/http_firewall_rule_model.go

41 lines
1.7 KiB
Go
Raw Permalink Normal View History

2020-09-23 10:12:57 +08:00
package models
import "github.com/iwind/TeaGo/dbs"
// HTTPFirewallRule 防火墙规则
2020-09-23 10:12:57 +08:00
type HTTPFirewallRule struct {
Id uint32 `field:"id"` // ID
2022-03-22 21:45:07 +08:00
IsOn bool `field:"isOn"` // 是否启用
Description string `field:"description"` // 说明
Param string `field:"param"` // 参数
ParamFilters dbs.JSON `field:"paramFilters"` // 处理器
Operator string `field:"operator"` // 操作符
Value string `field:"value"` // 对比值
2022-03-22 22:11:32 +08:00
IsCaseInsensitive bool `field:"isCaseInsensitive"` // 是否大小写不敏感
CheckpointOptions dbs.JSON `field:"checkpointOptions"` // 检查点参数
State uint8 `field:"state"` // 状态
CreatedAt uint64 `field:"createdAt"` // 创建时间
AdminId uint32 `field:"adminId"` // 管理员ID
UserId uint32 `field:"userId"` // 用户ID
2020-09-23 10:12:57 +08:00
}
type HTTPFirewallRuleOperator struct {
Id interface{} // ID
IsOn interface{} // 是否启用
2020-10-06 21:02:15 +08:00
Description interface{} // 说明
2020-09-23 10:12:57 +08:00
Param interface{} // 参数
ParamFilters interface{} // 处理器
2020-09-23 10:12:57 +08:00
Operator interface{} // 操作符
Value interface{} // 对比值
IsCaseInsensitive interface{} // 是否大小写不敏感
CheckpointOptions interface{} // 检查点参数
State interface{} // 状态
CreatedAt interface{} // 创建时间
AdminId interface{} // 管理员ID
UserId interface{} // 用户ID
}
func NewHTTPFirewallRuleOperator() *HTTPFirewallRuleOperator {
return &HTTPFirewallRuleOperator{}
}