mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
WAF规则增加备注信息/其他界面优化
This commit is contained in:
@@ -61,6 +61,7 @@ func (this *CreateRulePopupAction) RunPost(params struct {
|
||||
OptionsJSON []byte
|
||||
Value string
|
||||
Case bool
|
||||
Description string
|
||||
|
||||
Must *actions.Must
|
||||
}) {
|
||||
@@ -91,6 +92,7 @@ func (this *CreateRulePopupAction) RunPost(params struct {
|
||||
rule.Operator = params.Operator
|
||||
rule.Value = params.Value
|
||||
rule.IsCaseInsensitive = params.Case
|
||||
rule.Description = params.Description
|
||||
|
||||
if len(params.OptionsJSON) > 0 {
|
||||
options := []maps.Map{}
|
||||
|
||||
@@ -87,6 +87,7 @@ func (this *GroupAction) RunGet(params struct {
|
||||
"operator": rule.Operator,
|
||||
"value": rule.Value,
|
||||
"isCaseInsensitive": rule.IsCaseInsensitive,
|
||||
"description": rule.Description,
|
||||
"isComposed": firewallconfigs.CheckCheckpointIsComposed(rule.Prefix()),
|
||||
"checkpointOptions": rule.CheckpointOptions,
|
||||
"err": errString,
|
||||
|
||||
@@ -85,6 +85,7 @@ func (this *GroupAction) RunGet(params struct {
|
||||
"operator": rule.Operator,
|
||||
"value": rule.Value,
|
||||
"isCaseInsensitive": rule.IsCaseInsensitive,
|
||||
"description": rule.Description,
|
||||
"isComposed": firewallconfigs.CheckCheckpointIsComposed(rule.Prefix()),
|
||||
"checkpointOptions": rule.CheckpointOptions,
|
||||
"err": errString,
|
||||
|
||||
@@ -85,6 +85,7 @@ func (this *GroupAction) RunGet(params struct {
|
||||
"operator": rule.Operator,
|
||||
"value": rule.Value,
|
||||
"isCaseInsensitive": rule.IsCaseInsensitive,
|
||||
"description": rule.Description,
|
||||
"isComposed": firewallconfigs.CheckCheckpointIsComposed(rule.Prefix()),
|
||||
"checkpointOptions": rule.CheckpointOptions,
|
||||
"err": errString,
|
||||
|
||||
Reference in New Issue
Block a user