mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-29 08:00:25 +08:00
增加IP级别和WAF动作
This commit is contained in:
16
internal/web/actions/default/ui/eventLevelOptions.go
Normal file
16
internal/web/actions/default/ui/eventLevelOptions.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package ui
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/firewallconfigs"
|
||||
)
|
||||
|
||||
type EventLevelOptionsAction struct {
|
||||
actionutils.ParentAction
|
||||
}
|
||||
|
||||
func (this *EventLevelOptionsAction) RunPost(params struct{}) {
|
||||
this.Data["eventLevels"] = firewallconfigs.FindAllFirewallEventLevels()
|
||||
|
||||
this.Success()
|
||||
}
|
||||
Reference in New Issue
Block a user