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

31 lines
632 B
Go

package apps
import (
"github.com/TeaOSLab/EdgeUser/internal/web/actions/actionutils"
"github.com/TeaOSLab/EdgeUser/internal/web/actions/default/httpdns/httpdnsutils"
)
type SdkAction struct {
actionutils.ParentAction
}
func (this *SdkAction) Init() {
this.Nav("httpdns", "app", "sdk")
}
func (this *SdkAction) RunGet(params struct {
AppId int64
}) {
httpdnsutils.AddLeftMenu(this.Parent())
app, err := findAppMap(this.Parent(), params.AppId)
if err != nil {
this.ErrorPage(err)
return
}
httpdnsutils.AddAppTabbar(this.Parent(), app.GetString("name"), params.AppId, "sdk")
this.Data["app"] = app
this.Show()
}