mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			422 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			422 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package nameservers
 | 
						|
 | 
						|
import (
 | 
						|
	"encoding/json"
 | 
						|
	"github.com/TeaOSLab/EdgeAPI/internal/db/models"
 | 
						|
	"github.com/TeaOSLab/EdgeAPI/internal/remotelogs"
 | 
						|
)
 | 
						|
 | 
						|
func (this *NSDomain) DecodeGroupIds() []int64 {
 | 
						|
	if models.IsNull(this.GroupIds) {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
 | 
						|
	var result = []int64{}
 | 
						|
	err := json.Unmarshal(this.GroupIds, &result)
 | 
						|
	if err != nil {
 | 
						|
		remotelogs.Error("NSDomain", "DecodeGroupIds:"+err.Error())
 | 
						|
	}
 | 
						|
	return result
 | 
						|
}
 |