mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-27 01:50:31 +08:00
商业版支持L2节点
This commit is contained in:
@@ -96,3 +96,15 @@ func (this *Node) DecodeSecondaryClusterIds() []int64 {
|
||||
_ = json.Unmarshal(this.SecondaryClusterIds, &result)
|
||||
return result
|
||||
}
|
||||
|
||||
func (this *Node) AllClusterIds() []int64 {
|
||||
var result = []int64{}
|
||||
|
||||
if this.ClusterId > 0 {
|
||||
result = append(result, int64(this.ClusterId))
|
||||
}
|
||||
|
||||
result = append(result, this.DecodeSecondaryClusterIds()...)
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user