实现CPU线程数和修改节点的启用状态

This commit is contained in:
GoEdgeLab
2020-10-10 12:31:59 +08:00
parent aa56d4e67b
commit a507d53b03
6 changed files with 51 additions and 3 deletions

View File

@@ -2,9 +2,9 @@ package node
import (
"encoding/json"
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/nodes/grants/grantutils"
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
"github.com/iwind/TeaGo/maps"
)
@@ -115,6 +115,8 @@ func (this *NodeAction) RunGet(params struct {
"isInstalled": node.IsInstalled,
"uniqueId": node.UniqueId,
"secret": node.Secret,
"maxCPU": node.MaxCPU,
"isOn": node.IsOn,
}
this.Show()