Files
EdgeAdmin/internal/web/actions/default/servers/iplists/levelOptions.go
2021-07-14 22:45:52 +08:00

19 lines
445 B
Go

// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package iplists
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/firewallconfigs"
)
type LevelOptionsAction struct {
actionutils.ParentAction
}
func (this *LevelOptionsAction) RunPost(params struct{}) {
this.Data["levels"] = firewallconfigs.FindAllFirewallEventLevels()
this.Success()
}