From cc9d7e2dfad7c634e8ce69d02ce5fc4065e809e4 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期日, 25 四月 2021 11:34:47 +0800 Subject: [PATCH] 使用bhsgo by lichao --- dicApi.go | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/dicApi.go b/dicApi.go index f4f9d19..72563c3 100644 --- a/dicApi.go +++ b/dicApi.go @@ -12,9 +12,6 @@ func (api DicApi) FindByType(dicType string) (bool,interface{}) { url := DATA_URL_PREFIX + "/dictionary/findByType" netNode := getNetNode(url2Topic(Topic_System_Service, url)) - if netNode == nil { - return false,nil - } client := NewClient(WithNodes(netNode)) paramMap := make(map[string]string) paramMap["type"] = dicType @@ -33,9 +30,6 @@ func (api DicApi) FindByParentId(parentId string) (bool,interface{}){ url := DATA_URL_PREFIX + "/dictionary/findByParentId" netNode := getNetNode(url2Topic(Topic_System_Service, url)) - if netNode == nil { - return false,nil - } client := NewClient(WithNodes(netNode)) paramMap := make(map[string]string) paramMap["parentId"] = parentId @@ -54,9 +48,6 @@ func (api DicApi) ListByType(typ string) (flag bool,list []protomsg.Dic){ url := DATA_URL_PREFIX + "/dictionary/listByType" netNode := getNetNode(url2Topic(Topic_System_Service, url)) - if netNode == nil { - return false,nil - } client := NewClient(WithNodes(netNode)) paramMap := make(map[string]string) paramMap["type"] = typ -- Gitblit v1.8.0