zsgf_client 1.0.24 → 1.0.25
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/docs/AccessTokenApi.md +14 -14
- data/docs/AccessTokenPutRequest.md +2 -2
- data/docs/AppUserListResponse.md +12 -12
- data/docs/AppUserResetEmailRequest.md +20 -0
- data/docs/AppUserResetPhoneRequest.md +20 -0
- data/docs/AppUserResetPwdRequest.md +4 -8
- data/docs/CommonFriendModel.md +3 -3
- data/docs/EmailSignInRequest.md +3 -3
- data/docs/EmailSignUpRequest.md +5 -5
- data/docs/FileApi.md +4 -4
- data/docs/FollowerModel.md +12 -12
- data/docs/FollowerPutModel.md +6 -6
- data/docs/GeoLocation.md +62 -0
- data/docs/GeoLocationModel.md +4 -4
- data/docs/GeoLocationResponseModel.md +4 -4
- data/docs/GetUserProfileResult.md +24 -0
- data/docs/{UserFollowingResultApiResponse.md → GetUserProfileResultApiResponse.md} +3 -3
- data/docs/MySqlGeometry.md +26 -0
- data/docs/OAuthAccountSignInRequest.md +3 -3
- data/docs/PhoneSignInRequest.md +3 -3
- data/docs/PhoneSignUpRequest.md +7 -7
- data/docs/QRCodePreSignInRequest.md +3 -3
- data/docs/QRCodeScanRequest.md +1 -1
- data/docs/QRCodeSignInRequest.md +1 -1
- data/docs/QRCodeSignUpRequest.md +8 -8
- data/docs/RecommendFriend.md +21 -11
- data/docs/SendEmailCodeRequest.md +2 -2
- data/docs/SendSMSCodeRequest.md +2 -2
- data/docs/SignInRequest.md +3 -3
- data/docs/SignUpRequest.md +8 -8
- data/docs/StorageApi.md +86 -6
- data/docs/UnionIDSignInRequest.md +3 -3
- data/docs/UnionIDSignUpRequest.md +10 -10
- data/docs/UpdateProfileRequest.md +27 -15
- data/docs/UserApi.md +358 -54
- data/docs/UserFriendsNearByResult.md +3 -3
- data/docs/UserProfileResult.md +2 -28
- data/docs/WechatApi.md +86 -12
- data/lib/zsgf_client/api/access_token_api.rb +14 -14
- data/lib/zsgf_client/api/file_api.rb +3 -3
- data/lib/zsgf_client/api/storage_api.rb +105 -6
- data/lib/zsgf_client/api/user_api.rb +349 -60
- data/lib/zsgf_client/api/wechat_api.rb +88 -18
- data/lib/zsgf_client/models/access_token_put_request.rb +3 -27
- data/lib/zsgf_client/models/app_user_list_response.rb +12 -0
- data/lib/zsgf_client/models/app_user_reset_email_request.rb +269 -0
- data/lib/zsgf_client/models/app_user_reset_phone_request.rb +269 -0
- data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +52 -70
- data/lib/zsgf_client/models/common_friend_model.rb +3 -0
- data/lib/zsgf_client/models/email_sign_in_request.rb +38 -1
- data/lib/zsgf_client/models/email_sign_up_request.rb +30 -8
- data/lib/zsgf_client/models/follower_model.rb +12 -0
- data/lib/zsgf_client/models/follower_put_model.rb +6 -0
- data/lib/zsgf_client/models/geo_location.rb +750 -0
- data/lib/zsgf_client/models/geo_location_model.rb +262 -12
- data/lib/zsgf_client/models/geo_location_response_model.rb +262 -12
- data/lib/zsgf_client/models/{user_following_result.rb → get_user_profile_result.rb} +37 -18
- data/lib/zsgf_client/models/{user_following_result_api_response.rb → get_user_profile_result_api_response.rb} +4 -4
- data/lib/zsgf_client/models/my_sql_geometry.rb +260 -0
- data/lib/zsgf_client/models/o_auth_account_sign_in_request.rb +78 -1
- data/lib/zsgf_client/models/phone_sign_in_request.rb +49 -1
- data/lib/zsgf_client/models/phone_sign_up_request.rb +29 -24
- data/lib/zsgf_client/models/qr_code_pre_sign_in_request.rb +97 -0
- data/lib/zsgf_client/models/qr_code_scan_request.rb +1 -0
- data/lib/zsgf_client/models/qr_code_sign_in_request.rb +1 -0
- data/lib/zsgf_client/models/qr_code_sign_up_request.rb +38 -33
- data/lib/zsgf_client/models/recommend_friend.rb +69 -4
- data/lib/zsgf_client/models/send_email_code_request.rb +2 -1
- data/lib/zsgf_client/models/send_sms_code_request.rb +2 -2
- data/lib/zsgf_client/models/sign_in_request.rb +77 -11
- data/lib/zsgf_client/models/sign_up_request.rb +47 -35
- data/lib/zsgf_client/models/union_id_sign_in_request.rb +78 -1
- data/lib/zsgf_client/models/union_id_sign_up_request.rb +92 -45
- data/lib/zsgf_client/models/update_profile_request.rb +99 -24
- data/lib/zsgf_client/models/user_friends_near_by_result.rb +10 -7
- data/lib/zsgf_client/models/user_profile_result.rb +7 -133
- data/lib/zsgf_client/version.rb +1 -1
- data/lib/zsgf_client.rb +6 -2
- data/spec/api/access_token_api_spec.rb +7 -7
- data/spec/api/file_api_spec.rb +1 -1
- data/spec/api/storage_api_spec.rb +17 -1
- data/spec/api/user_api_spec.rb +81 -23
- data/spec/api/wechat_api_spec.rb +19 -6
- data/spec/models/{user_following_result_spec.rb → app_user_reset_email_request_spec.rb} +8 -8
- data/spec/models/app_user_reset_phone_request_spec.rb +42 -0
- data/spec/models/app_user_reset_pwd_request_spec.rb +2 -14
- data/spec/models/geo_location_model_spec.rb +3 -3
- data/spec/models/geo_location_response_model_spec.rb +3 -3
- data/spec/models/geo_location_spec.rb +168 -0
- data/spec/models/{user_following_result_api_response_spec.rb → get_user_profile_result_api_response_spec.rb} +6 -6
- data/spec/models/get_user_profile_result_spec.rb +54 -0
- data/spec/models/my_sql_geometry_spec.rb +60 -0
- data/spec/models/recommend_friend_spec.rb +30 -0
- data/spec/models/update_profile_request_spec.rb +36 -0
- data/spec/models/user_friends_near_by_result_spec.rb +1 -1
- data/spec/models/user_profile_result_spec.rb +1 -79
- metadata +215 -199
- data/docs/UserFollowingResult.md +0 -20
|
@@ -15,57 +15,75 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module ZSGFClient
|
|
17
17
|
class UpdateProfileRequest
|
|
18
|
-
#
|
|
18
|
+
# 用户头像的链接或路径,长度不能超过255个字符
|
|
19
19
|
attr_accessor :avatar
|
|
20
20
|
|
|
21
21
|
# 用户的其他数据,可以是序列化后的对象或JSON字符串
|
|
22
22
|
attr_accessor :data
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# 用户的昵称,长度不能超过50个字符
|
|
25
25
|
attr_accessor :nick_name
|
|
26
26
|
|
|
27
27
|
# 兴趣标签
|
|
28
28
|
attr_accessor :interest_tags
|
|
29
29
|
|
|
30
|
-
#
|
|
30
|
+
# 个人简介,长度不能超过500个字符
|
|
31
31
|
attr_accessor :biography
|
|
32
32
|
|
|
33
|
-
#
|
|
33
|
+
# 性别,长度不能超过15个字符
|
|
34
34
|
attr_accessor :gender
|
|
35
35
|
|
|
36
36
|
# 生日
|
|
37
37
|
attr_accessor :birthday
|
|
38
38
|
|
|
39
|
-
#
|
|
39
|
+
# 职业,长度不能超过50个字符
|
|
40
40
|
attr_accessor :occupation
|
|
41
41
|
|
|
42
|
-
#
|
|
42
|
+
# 学历,长度不能超过50个字符
|
|
43
43
|
attr_accessor :education
|
|
44
44
|
|
|
45
|
-
#
|
|
45
|
+
# 联系方式,长度不能超过255个字符
|
|
46
46
|
attr_accessor :contact
|
|
47
47
|
|
|
48
|
-
#
|
|
48
|
+
# 语言,长度不能超过50个字符
|
|
49
49
|
attr_accessor :languages
|
|
50
50
|
|
|
51
|
-
#
|
|
51
|
+
# 社交网络链接,长度不能超过255个字符
|
|
52
52
|
attr_accessor :social_links
|
|
53
53
|
|
|
54
|
-
#
|
|
54
|
+
# 婚姻状态,长度不能超过20个字符
|
|
55
55
|
attr_accessor :relationship_status
|
|
56
56
|
|
|
57
|
-
#
|
|
57
|
+
# 公司,长度不能超过100个字符
|
|
58
58
|
attr_accessor :company
|
|
59
59
|
|
|
60
|
-
#
|
|
60
|
+
# 行业,长度不能超过50个字符
|
|
61
61
|
attr_accessor :industry
|
|
62
62
|
|
|
63
|
-
#
|
|
63
|
+
# 行业职位,长度不能超过50个字符
|
|
64
64
|
attr_accessor :company_position
|
|
65
65
|
|
|
66
|
-
#
|
|
66
|
+
# 私密设置,长度不能超过500个字符
|
|
67
67
|
attr_accessor :private_settings
|
|
68
68
|
|
|
69
|
+
# 是否启用二步验证
|
|
70
|
+
attr_accessor :enable2_fa_auth
|
|
71
|
+
|
|
72
|
+
# 是否启用账号登录
|
|
73
|
+
attr_accessor :enable_user_name_sign_in
|
|
74
|
+
|
|
75
|
+
# 是否启用邮箱登录
|
|
76
|
+
attr_accessor :enable_email_sign_in
|
|
77
|
+
|
|
78
|
+
# 是否启用手机登录
|
|
79
|
+
attr_accessor :enable_phone_sign_in
|
|
80
|
+
|
|
81
|
+
# 是否启用UnionID登录
|
|
82
|
+
attr_accessor :enable_union_id_sign_in
|
|
83
|
+
|
|
84
|
+
# 是否启用OAuth2登录
|
|
85
|
+
attr_accessor :enable_o_auth
|
|
86
|
+
|
|
69
87
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
70
88
|
def self.attribute_map
|
|
71
89
|
{
|
|
@@ -85,7 +103,13 @@ module ZSGFClient
|
|
|
85
103
|
:'company' => :'company',
|
|
86
104
|
:'industry' => :'industry',
|
|
87
105
|
:'company_position' => :'companyPosition',
|
|
88
|
-
:'private_settings' => :'privateSettings'
|
|
106
|
+
:'private_settings' => :'privateSettings',
|
|
107
|
+
:'enable2_fa_auth' => :'enable2FAAuth',
|
|
108
|
+
:'enable_user_name_sign_in' => :'enableUserNameSignIn',
|
|
109
|
+
:'enable_email_sign_in' => :'enableEmailSignIn',
|
|
110
|
+
:'enable_phone_sign_in' => :'enablePhoneSignIn',
|
|
111
|
+
:'enable_union_id_sign_in' => :'enableUnionIDSignIn',
|
|
112
|
+
:'enable_o_auth' => :'enableOAuth'
|
|
89
113
|
}
|
|
90
114
|
end
|
|
91
115
|
|
|
@@ -118,7 +142,13 @@ module ZSGFClient
|
|
|
118
142
|
:'company' => :'String',
|
|
119
143
|
:'industry' => :'String',
|
|
120
144
|
:'company_position' => :'String',
|
|
121
|
-
:'private_settings' => :'String'
|
|
145
|
+
:'private_settings' => :'String',
|
|
146
|
+
:'enable2_fa_auth' => :'Boolean',
|
|
147
|
+
:'enable_user_name_sign_in' => :'Boolean',
|
|
148
|
+
:'enable_email_sign_in' => :'Boolean',
|
|
149
|
+
:'enable_phone_sign_in' => :'Boolean',
|
|
150
|
+
:'enable_union_id_sign_in' => :'Boolean',
|
|
151
|
+
:'enable_o_auth' => :'Boolean'
|
|
122
152
|
}
|
|
123
153
|
end
|
|
124
154
|
|
|
@@ -141,7 +171,13 @@ module ZSGFClient
|
|
|
141
171
|
:'company',
|
|
142
172
|
:'industry',
|
|
143
173
|
:'company_position',
|
|
144
|
-
:'private_settings'
|
|
174
|
+
:'private_settings',
|
|
175
|
+
:'enable2_fa_auth',
|
|
176
|
+
:'enable_user_name_sign_in',
|
|
177
|
+
:'enable_email_sign_in',
|
|
178
|
+
:'enable_phone_sign_in',
|
|
179
|
+
:'enable_union_id_sign_in',
|
|
180
|
+
:'enable_o_auth'
|
|
145
181
|
])
|
|
146
182
|
end
|
|
147
183
|
|
|
@@ -228,6 +264,30 @@ module ZSGFClient
|
|
|
228
264
|
if attributes.key?(:'private_settings')
|
|
229
265
|
self.private_settings = attributes[:'private_settings']
|
|
230
266
|
end
|
|
267
|
+
|
|
268
|
+
if attributes.key?(:'enable2_fa_auth')
|
|
269
|
+
self.enable2_fa_auth = attributes[:'enable2_fa_auth']
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if attributes.key?(:'enable_user_name_sign_in')
|
|
273
|
+
self.enable_user_name_sign_in = attributes[:'enable_user_name_sign_in']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if attributes.key?(:'enable_email_sign_in')
|
|
277
|
+
self.enable_email_sign_in = attributes[:'enable_email_sign_in']
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if attributes.key?(:'enable_phone_sign_in')
|
|
281
|
+
self.enable_phone_sign_in = attributes[:'enable_phone_sign_in']
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if attributes.key?(:'enable_union_id_sign_in')
|
|
285
|
+
self.enable_union_id_sign_in = attributes[:'enable_union_id_sign_in']
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
if attributes.key?(:'enable_o_auth')
|
|
289
|
+
self.enable_o_auth = attributes[:'enable_o_auth']
|
|
290
|
+
end
|
|
231
291
|
end
|
|
232
292
|
|
|
233
293
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -239,8 +299,12 @@ module ZSGFClient
|
|
|
239
299
|
invalid_properties.push('invalid value for "avatar", the character length must be smaller than or equal to 255.')
|
|
240
300
|
end
|
|
241
301
|
|
|
242
|
-
if !@nick_name.nil? && @nick_name.to_s.length >
|
|
243
|
-
invalid_properties.push('invalid value for "nick_name", the character length must be smaller than or equal to
|
|
302
|
+
if !@nick_name.nil? && @nick_name.to_s.length > 32
|
|
303
|
+
invalid_properties.push('invalid value for "nick_name", the character length must be smaller than or equal to 32.')
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if !@nick_name.nil? && @nick_name.to_s.length < 4
|
|
307
|
+
invalid_properties.push('invalid value for "nick_name", the character length must be great than or equal to 4.')
|
|
244
308
|
end
|
|
245
309
|
|
|
246
310
|
if !@biography.nil? && @biography.to_s.length > 500
|
|
@@ -299,7 +363,8 @@ module ZSGFClient
|
|
|
299
363
|
def valid?
|
|
300
364
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
301
365
|
return false if !@avatar.nil? && @avatar.to_s.length > 255
|
|
302
|
-
return false if !@nick_name.nil? && @nick_name.to_s.length >
|
|
366
|
+
return false if !@nick_name.nil? && @nick_name.to_s.length > 32
|
|
367
|
+
return false if !@nick_name.nil? && @nick_name.to_s.length < 4
|
|
303
368
|
return false if !@biography.nil? && @biography.to_s.length > 500
|
|
304
369
|
return false if !@gender.nil? && @gender.to_s.length > 15
|
|
305
370
|
return false if !@occupation.nil? && @occupation.to_s.length > 50
|
|
@@ -328,8 +393,12 @@ module ZSGFClient
|
|
|
328
393
|
# Custom attribute writer method with validation
|
|
329
394
|
# @param [Object] nick_name Value to be assigned
|
|
330
395
|
def nick_name=(nick_name)
|
|
331
|
-
if !nick_name.nil? && nick_name.to_s.length >
|
|
332
|
-
fail ArgumentError, 'invalid value for "nick_name", the character length must be smaller than or equal to
|
|
396
|
+
if !nick_name.nil? && nick_name.to_s.length > 32
|
|
397
|
+
fail ArgumentError, 'invalid value for "nick_name", the character length must be smaller than or equal to 32.'
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
if !nick_name.nil? && nick_name.to_s.length < 4
|
|
401
|
+
fail ArgumentError, 'invalid value for "nick_name", the character length must be great than or equal to 4.'
|
|
333
402
|
end
|
|
334
403
|
|
|
335
404
|
@nick_name = nick_name
|
|
@@ -476,7 +545,13 @@ module ZSGFClient
|
|
|
476
545
|
company == o.company &&
|
|
477
546
|
industry == o.industry &&
|
|
478
547
|
company_position == o.company_position &&
|
|
479
|
-
private_settings == o.private_settings
|
|
548
|
+
private_settings == o.private_settings &&
|
|
549
|
+
enable2_fa_auth == o.enable2_fa_auth &&
|
|
550
|
+
enable_user_name_sign_in == o.enable_user_name_sign_in &&
|
|
551
|
+
enable_email_sign_in == o.enable_email_sign_in &&
|
|
552
|
+
enable_phone_sign_in == o.enable_phone_sign_in &&
|
|
553
|
+
enable_union_id_sign_in == o.enable_union_id_sign_in &&
|
|
554
|
+
enable_o_auth == o.enable_o_auth
|
|
480
555
|
end
|
|
481
556
|
|
|
482
557
|
# @see the `==` method
|
|
@@ -488,7 +563,7 @@ module ZSGFClient
|
|
|
488
563
|
# Calculates hash code according to all attributes.
|
|
489
564
|
# @return [Integer] Hash code
|
|
490
565
|
def hash
|
|
491
|
-
[avatar, data, nick_name, interest_tags, biography, gender, birthday, occupation, education, contact, languages, social_links, relationship_status, company, industry, company_position, private_settings].hash
|
|
566
|
+
[avatar, data, nick_name, interest_tags, biography, gender, birthday, occupation, education, contact, languages, social_links, relationship_status, company, industry, company_position, private_settings, enable2_fa_auth, enable_user_name_sign_in, enable_email_sign_in, enable_phone_sign_in, enable_union_id_sign_in, enable_o_auth].hash
|
|
492
567
|
end
|
|
493
568
|
|
|
494
569
|
# Builds the object from hash
|
|
@@ -14,15 +14,18 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module ZSGFClient
|
|
17
|
+
# 附近用户推荐结果
|
|
17
18
|
class UserFriendsNearByResult
|
|
18
|
-
|
|
19
|
+
# 符合条件的总记录数
|
|
20
|
+
attr_accessor :total
|
|
19
21
|
|
|
22
|
+
# 当前分页的用户数据列表
|
|
20
23
|
attr_accessor :data
|
|
21
24
|
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
26
|
def self.attribute_map
|
|
24
27
|
{
|
|
25
|
-
:'
|
|
28
|
+
:'total' => :'total',
|
|
26
29
|
:'data' => :'data'
|
|
27
30
|
}
|
|
28
31
|
end
|
|
@@ -40,7 +43,7 @@ module ZSGFClient
|
|
|
40
43
|
# Attribute type mapping.
|
|
41
44
|
def self.openapi_types
|
|
42
45
|
{
|
|
43
|
-
:'
|
|
46
|
+
:'total' => :'Integer',
|
|
44
47
|
:'data' => :'Array<RecommendFriend>'
|
|
45
48
|
}
|
|
46
49
|
end
|
|
@@ -68,8 +71,8 @@ module ZSGFClient
|
|
|
68
71
|
h[k.to_sym] = v
|
|
69
72
|
}
|
|
70
73
|
|
|
71
|
-
if attributes.key?(:'
|
|
72
|
-
self.
|
|
74
|
+
if attributes.key?(:'total')
|
|
75
|
+
self.total = attributes[:'total']
|
|
73
76
|
end
|
|
74
77
|
|
|
75
78
|
if attributes.key?(:'data')
|
|
@@ -99,7 +102,7 @@ module ZSGFClient
|
|
|
99
102
|
def ==(o)
|
|
100
103
|
return true if self.equal?(o)
|
|
101
104
|
self.class == o.class &&
|
|
102
|
-
|
|
105
|
+
total == o.total &&
|
|
103
106
|
data == o.data
|
|
104
107
|
end
|
|
105
108
|
|
|
@@ -112,7 +115,7 @@ module ZSGFClient
|
|
|
112
115
|
# Calculates hash code according to all attributes.
|
|
113
116
|
# @return [Integer] Hash code
|
|
114
117
|
def hash
|
|
115
|
-
[
|
|
118
|
+
[total, data].hash
|
|
116
119
|
end
|
|
117
120
|
|
|
118
121
|
# Builds the object from hash
|
|
@@ -15,33 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module ZSGFClient
|
|
17
17
|
class UserProfileResult
|
|
18
|
-
attr_accessor :
|
|
19
|
-
|
|
20
|
-
attr_accessor :platform
|
|
21
|
-
|
|
22
|
-
attr_accessor :union_id
|
|
23
|
-
|
|
24
|
-
attr_accessor :phone
|
|
25
|
-
|
|
26
|
-
attr_accessor :create_date
|
|
27
|
-
|
|
28
|
-
attr_accessor :user_name
|
|
29
|
-
|
|
30
|
-
attr_accessor :phone_is_valid
|
|
31
|
-
|
|
32
|
-
attr_accessor :data
|
|
33
|
-
|
|
34
|
-
attr_accessor :email
|
|
35
|
-
|
|
36
|
-
attr_accessor :email_is_valid
|
|
37
|
-
|
|
38
|
-
attr_accessor :last_update
|
|
39
|
-
|
|
40
|
-
attr_accessor :nick_name
|
|
41
|
-
|
|
42
|
-
attr_accessor :id
|
|
43
|
-
|
|
44
|
-
attr_accessor :avatar
|
|
18
|
+
attr_accessor :user
|
|
45
19
|
|
|
46
20
|
attr_accessor :currencies
|
|
47
21
|
|
|
@@ -50,20 +24,7 @@ module ZSGFClient
|
|
|
50
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
51
25
|
def self.attribute_map
|
|
52
26
|
{
|
|
53
|
-
:'
|
|
54
|
-
:'platform' => :'platform',
|
|
55
|
-
:'union_id' => :'unionID',
|
|
56
|
-
:'phone' => :'phone',
|
|
57
|
-
:'create_date' => :'createDate',
|
|
58
|
-
:'user_name' => :'userName',
|
|
59
|
-
:'phone_is_valid' => :'phoneIsValid',
|
|
60
|
-
:'data' => :'data',
|
|
61
|
-
:'email' => :'email',
|
|
62
|
-
:'email_is_valid' => :'emailIsValid',
|
|
63
|
-
:'last_update' => :'lastUpdate',
|
|
64
|
-
:'nick_name' => :'nickName',
|
|
65
|
-
:'id' => :'id',
|
|
66
|
-
:'avatar' => :'avatar',
|
|
27
|
+
:'user' => :'user',
|
|
67
28
|
:'currencies' => :'currencies',
|
|
68
29
|
:'role' => :'role'
|
|
69
30
|
}
|
|
@@ -82,20 +43,7 @@ module ZSGFClient
|
|
|
82
43
|
# Attribute type mapping.
|
|
83
44
|
def self.openapi_types
|
|
84
45
|
{
|
|
85
|
-
:'
|
|
86
|
-
:'platform' => :'String',
|
|
87
|
-
:'union_id' => :'String',
|
|
88
|
-
:'phone' => :'String',
|
|
89
|
-
:'create_date' => :'Time',
|
|
90
|
-
:'user_name' => :'String',
|
|
91
|
-
:'phone_is_valid' => :'Boolean',
|
|
92
|
-
:'data' => :'String',
|
|
93
|
-
:'email' => :'String',
|
|
94
|
-
:'email_is_valid' => :'Boolean',
|
|
95
|
-
:'last_update' => :'Time',
|
|
96
|
-
:'nick_name' => :'String',
|
|
97
|
-
:'id' => :'Integer',
|
|
98
|
-
:'avatar' => :'String',
|
|
46
|
+
:'user' => :'User',
|
|
99
47
|
:'currencies' => :'Array<UserCurrency>',
|
|
100
48
|
:'role' => :'String'
|
|
101
49
|
}
|
|
@@ -104,15 +52,6 @@ module ZSGFClient
|
|
|
104
52
|
# List of attributes with nullable: true
|
|
105
53
|
def self.openapi_nullable
|
|
106
54
|
Set.new([
|
|
107
|
-
:'app_key',
|
|
108
|
-
:'platform',
|
|
109
|
-
:'union_id',
|
|
110
|
-
:'phone',
|
|
111
|
-
:'user_name',
|
|
112
|
-
:'data',
|
|
113
|
-
:'email',
|
|
114
|
-
:'nick_name',
|
|
115
|
-
:'avatar',
|
|
116
55
|
:'currencies',
|
|
117
56
|
:'role'
|
|
118
57
|
])
|
|
@@ -134,60 +73,8 @@ module ZSGFClient
|
|
|
134
73
|
h[k.to_sym] = v
|
|
135
74
|
}
|
|
136
75
|
|
|
137
|
-
if attributes.key?(:'
|
|
138
|
-
self.
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
if attributes.key?(:'platform')
|
|
142
|
-
self.platform = attributes[:'platform']
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
if attributes.key?(:'union_id')
|
|
146
|
-
self.union_id = attributes[:'union_id']
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if attributes.key?(:'phone')
|
|
150
|
-
self.phone = attributes[:'phone']
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
if attributes.key?(:'create_date')
|
|
154
|
-
self.create_date = attributes[:'create_date']
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
if attributes.key?(:'user_name')
|
|
158
|
-
self.user_name = attributes[:'user_name']
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
if attributes.key?(:'phone_is_valid')
|
|
162
|
-
self.phone_is_valid = attributes[:'phone_is_valid']
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
if attributes.key?(:'data')
|
|
166
|
-
self.data = attributes[:'data']
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
if attributes.key?(:'email')
|
|
170
|
-
self.email = attributes[:'email']
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
if attributes.key?(:'email_is_valid')
|
|
174
|
-
self.email_is_valid = attributes[:'email_is_valid']
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
if attributes.key?(:'last_update')
|
|
178
|
-
self.last_update = attributes[:'last_update']
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
if attributes.key?(:'nick_name')
|
|
182
|
-
self.nick_name = attributes[:'nick_name']
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
if attributes.key?(:'id')
|
|
186
|
-
self.id = attributes[:'id']
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
if attributes.key?(:'avatar')
|
|
190
|
-
self.avatar = attributes[:'avatar']
|
|
76
|
+
if attributes.key?(:'user')
|
|
77
|
+
self.user = attributes[:'user']
|
|
191
78
|
end
|
|
192
79
|
|
|
193
80
|
if attributes.key?(:'currencies')
|
|
@@ -221,20 +108,7 @@ module ZSGFClient
|
|
|
221
108
|
def ==(o)
|
|
222
109
|
return true if self.equal?(o)
|
|
223
110
|
self.class == o.class &&
|
|
224
|
-
|
|
225
|
-
platform == o.platform &&
|
|
226
|
-
union_id == o.union_id &&
|
|
227
|
-
phone == o.phone &&
|
|
228
|
-
create_date == o.create_date &&
|
|
229
|
-
user_name == o.user_name &&
|
|
230
|
-
phone_is_valid == o.phone_is_valid &&
|
|
231
|
-
data == o.data &&
|
|
232
|
-
email == o.email &&
|
|
233
|
-
email_is_valid == o.email_is_valid &&
|
|
234
|
-
last_update == o.last_update &&
|
|
235
|
-
nick_name == o.nick_name &&
|
|
236
|
-
id == o.id &&
|
|
237
|
-
avatar == o.avatar &&
|
|
111
|
+
user == o.user &&
|
|
238
112
|
currencies == o.currencies &&
|
|
239
113
|
role == o.role
|
|
240
114
|
end
|
|
@@ -248,7 +122,7 @@ module ZSGFClient
|
|
|
248
122
|
# Calculates hash code according to all attributes.
|
|
249
123
|
# @return [Integer] Hash code
|
|
250
124
|
def hash
|
|
251
|
-
[
|
|
125
|
+
[user, currencies, role].hash
|
|
252
126
|
end
|
|
253
127
|
|
|
254
128
|
# Builds the object from hash
|
data/lib/zsgf_client/version.rb
CHANGED
data/lib/zsgf_client.rb
CHANGED
|
@@ -54,6 +54,8 @@ require 'zsgf_client/models/app_setting_setting_post_result_api_response'
|
|
|
54
54
|
require 'zsgf_client/models/app_user_consent_model'
|
|
55
55
|
require 'zsgf_client/models/app_user_consent_model_list_api_response'
|
|
56
56
|
require 'zsgf_client/models/app_user_list_response'
|
|
57
|
+
require 'zsgf_client/models/app_user_reset_email_request'
|
|
58
|
+
require 'zsgf_client/models/app_user_reset_phone_request'
|
|
57
59
|
require 'zsgf_client/models/app_user_reset_pwd_request'
|
|
58
60
|
require 'zsgf_client/models/authorize_policy'
|
|
59
61
|
require 'zsgf_client/models/authorize_policy_api_response'
|
|
@@ -91,9 +93,12 @@ require 'zsgf_client/models/file_list_result_api_response'
|
|
|
91
93
|
require 'zsgf_client/models/follower_model'
|
|
92
94
|
require 'zsgf_client/models/follower_put_model'
|
|
93
95
|
require 'zsgf_client/models/fulfillment_detail'
|
|
96
|
+
require 'zsgf_client/models/geo_location'
|
|
94
97
|
require 'zsgf_client/models/geo_location_model'
|
|
95
98
|
require 'zsgf_client/models/geo_location_model_api_response'
|
|
96
99
|
require 'zsgf_client/models/geo_location_response_model'
|
|
100
|
+
require 'zsgf_client/models/get_user_profile_result'
|
|
101
|
+
require 'zsgf_client/models/get_user_profile_result_api_response'
|
|
97
102
|
require 'zsgf_client/models/goods_detail'
|
|
98
103
|
require 'zsgf_client/models/grant_request'
|
|
99
104
|
require 'zsgf_client/models/grant_result'
|
|
@@ -103,6 +108,7 @@ require 'zsgf_client/models/int64_api_response'
|
|
|
103
108
|
require 'zsgf_client/models/intact_charge_info'
|
|
104
109
|
require 'zsgf_client/models/list_response_item'
|
|
105
110
|
require 'zsgf_client/models/list_response_item_list_api_response'
|
|
111
|
+
require 'zsgf_client/models/my_sql_geometry'
|
|
106
112
|
require 'zsgf_client/models/o_auth_account_bind_request'
|
|
107
113
|
require 'zsgf_client/models/o_auth_account_put_bind_request'
|
|
108
114
|
require 'zsgf_client/models/o_auth_account_sign_in_request'
|
|
@@ -190,8 +196,6 @@ require 'zsgf_client/models/user_currency_currency_trans_result_api_response'
|
|
|
190
196
|
require 'zsgf_client/models/user_currency_list_api_response'
|
|
191
197
|
require 'zsgf_client/models/user_followers_result'
|
|
192
198
|
require 'zsgf_client/models/user_followers_result_api_response'
|
|
193
|
-
require 'zsgf_client/models/user_following_result'
|
|
194
|
-
require 'zsgf_client/models/user_following_result_api_response'
|
|
195
199
|
require 'zsgf_client/models/user_friends_near_by_result'
|
|
196
200
|
require 'zsgf_client/models/user_friends_near_by_result_api_response'
|
|
197
201
|
require 'zsgf_client/models/user_list_result'
|
|
@@ -35,7 +35,7 @@ describe 'AccessTokenApi' do
|
|
|
35
35
|
# unit tests for access_token_delete
|
|
36
36
|
# 删除令牌
|
|
37
37
|
# 删除用户令牌
|
|
38
|
-
# @param id
|
|
38
|
+
# @param id
|
|
39
39
|
# @param app_key
|
|
40
40
|
# @param [Hash] opts the optional parameters
|
|
41
41
|
# @return [BooleanApiResponse]
|
|
@@ -50,7 +50,7 @@ describe 'AccessTokenApi' do
|
|
|
50
50
|
# 创建新的用户令牌
|
|
51
51
|
# @param app_key
|
|
52
52
|
# @param [Hash] opts the optional parameters
|
|
53
|
-
# @option opts [AccessTokenPostRequest] :access_token_post_request
|
|
53
|
+
# @option opts [AccessTokenPostRequest] :access_token_post_request
|
|
54
54
|
# @return [TokenModelApiResponse]
|
|
55
55
|
describe 'access_token_post test' do
|
|
56
56
|
it 'should work' do
|
|
@@ -61,10 +61,10 @@ describe 'AccessTokenApi' do
|
|
|
61
61
|
# unit tests for access_token_put
|
|
62
62
|
# 更新令牌
|
|
63
63
|
# 更新现有的用户令牌
|
|
64
|
-
# @param id
|
|
64
|
+
# @param id
|
|
65
65
|
# @param app_key
|
|
66
66
|
# @param [Hash] opts the optional parameters
|
|
67
|
-
# @option opts [AccessTokenPutRequest] :access_token_put_request
|
|
67
|
+
# @option opts [AccessTokenPutRequest] :access_token_put_request
|
|
68
68
|
# @return [BooleanApiResponse]
|
|
69
69
|
describe 'access_token_put test' do
|
|
70
70
|
it 'should work' do
|
|
@@ -77,9 +77,9 @@ describe 'AccessTokenApi' do
|
|
|
77
77
|
# 获取用户令牌列表
|
|
78
78
|
# @param app_key
|
|
79
79
|
# @param [Hash] opts the optional parameters
|
|
80
|
-
# @option opts [Integer] :user_id
|
|
81
|
-
# @option opts [Integer] :skip
|
|
82
|
-
# @option opts [Integer] :take
|
|
80
|
+
# @option opts [Integer] :user_id
|
|
81
|
+
# @option opts [Integer] :skip
|
|
82
|
+
# @option opts [Integer] :take
|
|
83
83
|
# @return [AccessTokenListResultApiResponse]
|
|
84
84
|
describe 'access_tokens test' do
|
|
85
85
|
it 'should work' do
|
data/spec/api/file_api_spec.rb
CHANGED
|
@@ -79,7 +79,7 @@ describe 'FileApi' do
|
|
|
79
79
|
# @param [Hash] opts the optional parameters
|
|
80
80
|
# @option opts [String] :path 文件夹路径
|
|
81
81
|
# @option opts [File] :file 上传的文件
|
|
82
|
-
# @return [
|
|
82
|
+
# @return [StringApiResponse]
|
|
83
83
|
describe 'file_upload test' do
|
|
84
84
|
it 'should work' do
|
|
85
85
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -46,6 +46,22 @@ describe 'StorageApi' do
|
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
# unit tests for storage_batch_update
|
|
50
|
+
# 批量更新指定条件的数据
|
|
51
|
+
# 批量更新指定表中符合条件的文档,可以动态指定查询条件和更新字段
|
|
52
|
+
# @param table 表名称
|
|
53
|
+
# @param filter 查询条件
|
|
54
|
+
# @param app_key
|
|
55
|
+
# @param request_body 更新的字段
|
|
56
|
+
# @param [Hash] opts the optional parameters
|
|
57
|
+
# @option opts [Boolean] :replace 是否为全量替换,默认为 false
|
|
58
|
+
# @return [BooleanApiResponse]
|
|
59
|
+
describe 'storage_batch_update test' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
49
65
|
# unit tests for storage_clear
|
|
50
66
|
# 清空表数据
|
|
51
67
|
# 根据筛选条件清空指定表中的数据
|
|
@@ -217,7 +233,7 @@ describe 'StorageApi' do
|
|
|
217
233
|
# @param table 表名称
|
|
218
234
|
# @param id 数据ID
|
|
219
235
|
# @param app_key
|
|
220
|
-
# @param
|
|
236
|
+
# @param request_body json格式
|
|
221
237
|
# @param [Hash] opts the optional parameters
|
|
222
238
|
# @option opts [Boolean] :replace 是否为全量更新,默认为false
|
|
223
239
|
# @return [BooleanApiResponse]
|