mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
单个服务切换集群时可以选择是否保留节点上的配置/总是可以切换集群,不再受所属用户的影响
This commit is contained in:
@@ -147,13 +147,14 @@ func (this *IndexAction) RunGet(params struct {
|
||||
|
||||
// RunPost 保存
|
||||
func (this *IndexAction) RunPost(params struct {
|
||||
ServerId int64
|
||||
Name string
|
||||
Description string
|
||||
ClusterId int64
|
||||
GroupIds []int64
|
||||
IsOn bool
|
||||
UserPlanId int64
|
||||
ServerId int64
|
||||
Name string
|
||||
Description string
|
||||
ClusterId int64
|
||||
KeepOldConfigs bool
|
||||
GroupIds []int64
|
||||
IsOn bool
|
||||
UserPlanId int64
|
||||
|
||||
Must *actions.Must
|
||||
}) {
|
||||
@@ -174,6 +175,7 @@ func (this *IndexAction) RunPost(params struct {
|
||||
Name: params.Name,
|
||||
Description: params.Description,
|
||||
NodeClusterId: params.ClusterId,
|
||||
KeepOldConfigs: params.KeepOldConfigs,
|
||||
IsOn: params.IsOn,
|
||||
ServerGroupIds: params.GroupIds,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user