From 2d1441997bacd91c33447b4f6424dd543f4fc171 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 03 七月 2019 19:39:39 +0800
Subject: [PATCH] fix area bug

---
 dicApi.go |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/dicApi.go b/dicApi.go
index 0bdd17d..0a2e455 100644
--- a/dicApi.go
+++ b/dicApi.go
@@ -25,3 +25,20 @@
 	}
 	return res.Success,res.Data
 }
+
+func (api DicApi) FindByParentId(parentId string) (bool,interface{}){
+	url := BASIC_URL + DATA_URL_PREFIX + "/dictionary/findByParentId"
+	client := NewClient()
+	paramMap := make(map[string]string)
+	paramMap["parentId"] = parentId
+	respBody, err := client.DoGetRequest(url, paramMap, nil)
+	if err !=nil {
+		return false,nil
+	}
+	var res Result
+	if err = json.Unmarshal(respBody, &res); err != nil {
+		fmt.Println(err)
+		return false,nil
+	}
+	return res.Success,res.Data
+}
\ No newline at end of file

--
Gitblit v1.8.0