新创建WAF时增加默认选项

This commit is contained in:
刘祥超
2022-05-21 18:57:59 +08:00
parent 8c450a9b43
commit 6aee09b22b
6 changed files with 31 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ package firewallconfigs
import "github.com/iwind/TeaGo/maps"
// 防火墙动作配置
// FirewallActionConfig 防火墙动作配置
type FirewallActionConfig struct {
Id int64 `yaml:"id" json:"id"` // Id
Type string `yaml:"type" json:"type"` // 类型
@@ -10,7 +10,7 @@ type FirewallActionConfig struct {
EventLevel string `yaml:"eventLevel" json:"eventLevel"` // 事件级别
}
// 初始化
// Init 初始化
func (this *FirewallActionConfig) Init() error {
return nil
}