| | |
| | | }) |
| | | } |
| | | return persons,nil |
| | | } |
| | | |
| | | func (api DbPersonApi) FindLikePersonIds (tableIds []string,inputValue string) (interface{},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 |
| | | } |
| | | return res.Data,nil |
| | | } |