19 lines
362 B
Go
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()
|
|
}
|