Files
waf-platform/EdgeAdmin/internal/web/actions/default/httpdns/clusters/updateNodeSSH.go
2026-02-24 11:33:44 +08:00

40 lines
727 B
Go

package clusters
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/iwind/TeaGo/maps"
)
type UpdateNodeSSHAction struct {
actionutils.ParentAction
}
func (this *UpdateNodeSSHAction) RunGet(params struct {
NodeId int64
}) {
this.Data["nodeId"] = params.NodeId
this.Data["clusterId"] = 0
this.Data["node"] = maps.Map{
"id": params.NodeId,
"name": "Mock Node",
}
this.Data["loginId"] = 0
this.Data["params"] = maps.Map{
"host": "1.2.3.4",
"port": 22,
"grantId": 0,
}
this.Data["grant"] = nil
this.Show()
}
func (this *UpdateNodeSSHAction) RunPost(params struct {
NodeId int64
LoginId int64
SshHost string
SshPort int
GrantId int64
}) {
this.Success()
}