优化代码

This commit is contained in:
刘祥超
2020-12-17 17:35:38 +08:00
parent 65384082f7
commit 563315c218
33 changed files with 92 additions and 76 deletions

View File

@@ -36,10 +36,10 @@ func (this *UserAction) RunGet(params struct {
}
var clusterMap maps.Map = nil
if user.Cluster != nil {
if user.NodeCluster != nil {
clusterMap = maps.Map{
"id": user.Cluster.Id,
"name": user.Cluster.Name,
"id": user.NodeCluster.Id,
"name": user.NodeCluster.Name,
}
}