Files
waf-platform/EdgeUser/internal/web/actions/default/httpdns/apps/app.go
2026-02-28 18:55:33 +08:00

27 lines
487 B
Go

package apps
import (
"strconv"
"github.com/TeaOSLab/EdgeUser/internal/web/actions/actionutils"
)
type AppAction struct {
actionutils.ParentAction
}
func (this *AppAction) Init() {
this.Nav("httpdns", "app", "")
}
func (this *AppAction) RunGet(params struct {
AppId int64
}) {
app, err := findAppMap(this.Parent(), params.AppId)
if err != nil {
this.ErrorPage(err)
return
}
this.RedirectURL("/httpdns/apps/domains?appId=" + strconv.FormatInt(app.GetInt64("id"), 10))
}