From b5aadb41f6cfdca16e7fd4b3637d14c412ae1e97 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期一, 28 十月 2019 18:38:13 +0800
Subject: [PATCH] add func
---
dbpersonApi.go | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/dbpersonApi.go b/dbpersonApi.go
index cc54192..2aee7c7 100644
--- a/dbpersonApi.go
+++ b/dbpersonApi.go
@@ -214,4 +214,27 @@
})
}
return persons,nil
+}
+
+func (api DbPersonApi) FindLikePersonIds (tableIds []string,inputValue string) (personIds []string,err error) {
+ url := api.getBasicUrl() + DATA_URL_PREFIX + "/dbperson/findLikePersonIds"
+ client := NewClient()
+ paramBody := map[string]interface{}{
+ "tableIds": tableIds,
+ "inputValue": inputValue,
+ }
+ body,err := client.DoPostRequest(url,CONTENT_TYPE_JSON, paramBody,nil,nil)
+ if err != nil {
+ return nil,err
+ }
+
+ var res Result
+ 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
}
\ No newline at end of file
--
Gitblit v1.8.0