mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	优化代码
This commit is contained in:
		@@ -35,10 +35,10 @@ func (this *IndexAction) RunGet(params struct {
 | 
			
		||||
	userMaps := []maps.Map{}
 | 
			
		||||
	for _, user := range usersResp.Users {
 | 
			
		||||
		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,
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		userMaps = append(userMaps, maps.Map{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user