mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			368 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			368 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package models
 | 
						|
 | 
						|
import (
 | 
						|
	"encoding/json"
 | 
						|
	"github.com/iwind/TeaGo/maps"
 | 
						|
)
 | 
						|
 | 
						|
// DecodeParams 解析参数
 | 
						|
func (this *NodeClusterFirewallAction) DecodeParams() (maps.Map, error) {
 | 
						|
	if IsNotNull(this.Params) {
 | 
						|
		params := maps.Map{}
 | 
						|
		err := json.Unmarshal(this.Params, ¶ms)
 | 
						|
		if err != nil {
 | 
						|
			return nil, err
 | 
						|
		}
 | 
						|
		return params, nil
 | 
						|
	}
 | 
						|
	return maps.Map{}, nil
 | 
						|
}
 |