35 lines
756 B
Go
35 lines
756 B
Go
package clusters
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/httpdns/httpdnsutils"
|
|
)
|
|
|
|
type DeleteAction struct {
|
|
actionutils.ParentAction
|
|
}
|
|
|
|
func (this *DeleteAction) Init() {
|
|
this.Nav("httpdns", "cluster", "delete")
|
|
}
|
|
|
|
func (this *DeleteAction) RunGet(params struct {
|
|
ClusterId int64
|
|
}) {
|
|
httpdnsutils.AddLeftMenu(this.Parent())
|
|
cluster := pickCluster(params.ClusterId)
|
|
|
|
// 构建顶部 tabbar
|
|
httpdnsutils.AddClusterTabbar(this.Parent(), cluster.GetString("name"), params.ClusterId, "delete")
|
|
|
|
this.Data["cluster"] = cluster
|
|
this.Show()
|
|
}
|
|
|
|
func (this *DeleteAction) RunPost(params struct {
|
|
ClusterId int64
|
|
}) {
|
|
_ = params.ClusterId
|
|
this.Success()
|
|
}
|