Files
waf-platform/EdgeAdmin/internal/web/actions/default/httpdns/clusters/deleteNode.go
2026-02-27 10:35:22 +08:00

19 lines
362 B
Go

package clusters
import "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
type DeleteNodeAction struct {
actionutils.ParentAction
}
func (this *DeleteNodeAction) RunPost(params struct {
ClusterId int64
NodeId int64
}) {
if err := deleteNode(this.Parent(), params.NodeId); err != nil {
this.ErrorPage(err)
return
}
this.Success()
}