mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	优化代码
This commit is contained in:
		@@ -109,8 +109,8 @@ func (this *NodeIPAddressThresholdService) FindAllEnabledNodeIPAddressThresholds
 | 
			
		||||
	for _, threshold := range thresholds {
 | 
			
		||||
		pbThresholds = append(pbThresholds, &pb.NodeIPAddressThreshold{
 | 
			
		||||
			Id:          int64(threshold.Id),
 | 
			
		||||
			ItemsJSON:   []byte(threshold.Items),
 | 
			
		||||
			ActionsJSON: []byte(threshold.Actions),
 | 
			
		||||
			ItemsJSON:   threshold.Items,
 | 
			
		||||
			ActionsJSON: threshold.Actions,
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
	return &pb.FindAllEnabledNodeIPAddressThresholdsResponse{NodeIPAddressThresholds: pbThresholds}, nil
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user