mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-02-18 22:45:37 +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()
|
||||
}
|
||||
@@ -23,6 +23,7 @@ func init() {
|
||||
Get("/download", new(DownloadAction)).
|
||||
GetPost("/selectProvincesPopup", new(SelectProvincesPopupAction)).
|
||||
GetPost("/selectCountriesPopup", new(SelectCountriesPopupAction)).
|
||||
Post("/eventLevelOptions", new(EventLevelOptionsAction)).
|
||||
|
||||
EndAll()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user