From 872f0d29a2d3ac9352cf716f9602318d549f2835 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期一, 28 十月 2019 21:05:48 +0800
Subject: [PATCH] fix
---
dbpersonApi.go | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/dbpersonApi.go b/dbpersonApi.go
index 2aee7c7..43a52a7 100644
--- a/dbpersonApi.go
+++ b/dbpersonApi.go
@@ -216,7 +216,7 @@
return persons,nil
}
-func (api DbPersonApi) FindLikePersonIds (tableIds []string,inputValue string) (personIds []string,err error) {
+func (api DbPersonApi) FindLikePersonIds (tableIds []string,inputValue string) (interface{},error) {
url := api.getBasicUrl() + DATA_URL_PREFIX + "/dbperson/findLikePersonIds"
client := NewClient()
paramBody := map[string]interface{}{
@@ -232,9 +232,5 @@
if err = json.Unmarshal(body, &res); err != nil {
return nil,err
}
- dataBytes, _ := json.Marshal(res.Data)
- if err = json.Unmarshal(dataBytes, &personIds);err !=nil {
- return nil,err
- }
- return personIds,nil
+ return res.Data,nil
}
\ No newline at end of file
--
Gitblit v1.8.0