fix
liuxiaolong
2021-06-04 e2c3330eb73157ece61f487e6aa96e222fac63c8
dicApi.go
@@ -1,6 +1,7 @@
package bhomedbapi
import (
   "basic.com/pubsub/protomsg.git"
   "encoding/json"
)
@@ -11,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
@@ -32,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
@@ -53,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