mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-25 16:30:26 +08:00
增加节点同步状态提示和任务列表
This commit is contained in:
@@ -66,3 +66,15 @@ func (this *Node) DNSRouteCodesForDomainId(dnsDomainId int64) ([]string, error)
|
||||
domainRoutes, _ := routes[dnsDomainId]
|
||||
return domainRoutes, nil
|
||||
}
|
||||
|
||||
// 连接的API
|
||||
func (this *Node) DecodeConnectedAPINodeIds() ([]int64, error) {
|
||||
apiNodeIds := []int64{}
|
||||
if IsNotNull(this.ConnectedAPINodes) {
|
||||
err := json.Unmarshal([]byte(this.ConnectedAPINodes), &apiNodeIds)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
return apiNodeIds, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user