2021-07-11 18:05:49 +08:00
|
|
|
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
|
|
|
|
|
|
|
|
|
package boards
|
|
|
|
|
|
2021-07-11 21:44:03 +08:00
|
|
|
import (
|
|
|
|
|
teaconst "github.com/TeaOSLab/EdgeAdmin/internal/const"
|
|
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
|
|
|
|
)
|
2021-07-11 18:05:49 +08:00
|
|
|
|
|
|
|
|
type WafAction struct {
|
|
|
|
|
actionutils.ParentAction
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (this *WafAction) Init() {
|
|
|
|
|
this.Nav("", "", "waf")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (this *WafAction) RunGet(params struct{}) {
|
2021-07-11 21:44:03 +08:00
|
|
|
if !teaconst.IsPlus {
|
|
|
|
|
this.RedirectURL("/dashboard")
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-11 18:05:49 +08:00
|
|
|
this.Show()
|
|
|
|
|
}
|