kf5_api 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kf5_api/user.rb +4 -2
- data/lib/kf5_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11908bb26efc438cc1320c9295eae8ed05d05a79
|
|
4
|
+
data.tar.gz: 2c633be1c46c884cbe65c6fe830583e1aa084c82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9e838e26b9689e84ce01b91538d10a1c91565a1cca8b907c53d002af8831277ef0f218b1f5ed17221e3970ee5bcba9b1f6c85703c7676ad931634299ffedab3
|
|
7
|
+
data.tar.gz: 277a8868db68cec25ec3f7217037519b35873190c4e107904a8943b6cccf7715cb8cfc319d8c6ea3fde4aba0e747ad8c00496b497b4896986eb7438e04d42892
|
data/lib/kf5_api/user.rb
CHANGED
|
@@ -32,9 +32,11 @@ module Kf5Api
|
|
|
32
32
|
|
|
33
33
|
# 查询用户信息
|
|
34
34
|
# query为查询参数,模糊搜索(名称,邮箱,手机号,微信openid)
|
|
35
|
-
def search(keyword)
|
|
35
|
+
def search(keyword, query_fields = nil)
|
|
36
36
|
action = format(ACTIONS_HASH[:search])
|
|
37
|
-
|
|
37
|
+
query_params = { query: keyword }
|
|
38
|
+
query_params[:query_fields] = query_fields if query_fields.present?
|
|
39
|
+
get(action, query_params).parsed_response
|
|
38
40
|
end
|
|
39
41
|
end
|
|
40
42
|
end
|
data/lib/kf5_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kf5_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- wangrui
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-07-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|