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) this.Data["cluster"] = cluster this.Show() } func (this *DeleteAction) RunPost(params struct { ClusterId int64 }) { _ = params.ClusterId this.Success() }