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
|
@@ -95,7 +95,7 @@ module ZSGFClient
|
|
|
95
95
|
# 生成小程序的scheme码
|
|
96
96
|
# @param app_key [String]
|
|
97
97
|
# @param [Hash] opts the optional parameters
|
|
98
|
-
# @option opts [Object] :
|
|
98
|
+
# @option opts [Array<Object>] :request_body scheme码数据,开发参考:https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/url-scheme/generateScheme.html
|
|
99
99
|
# @return [StringApiResponse]
|
|
100
100
|
def wechat_generate_scheme(app_key, opts = {})
|
|
101
101
|
data, _status_code, _headers = wechat_generate_scheme_with_http_info(app_key, opts)
|
|
@@ -106,7 +106,7 @@ module ZSGFClient
|
|
|
106
106
|
# 生成小程序的scheme码
|
|
107
107
|
# @param app_key [String]
|
|
108
108
|
# @param [Hash] opts the optional parameters
|
|
109
|
-
# @option opts [Object] :
|
|
109
|
+
# @option opts [Array<Object>] :request_body scheme码数据,开发参考:https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/url-scheme/generateScheme.html
|
|
110
110
|
# @return [Array<(StringApiResponse, Integer, Hash)>] StringApiResponse data, response status code and response headers
|
|
111
111
|
def wechat_generate_scheme_with_http_info(app_key, opts = {})
|
|
112
112
|
if @api_client.config.debugging
|
|
@@ -136,7 +136,7 @@ module ZSGFClient
|
|
|
136
136
|
form_params = opts[:form_params] || {}
|
|
137
137
|
|
|
138
138
|
# http body (model)
|
|
139
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
140
140
|
|
|
141
141
|
# return_type
|
|
142
142
|
return_type = opts[:debug_return_type] || 'StringApiResponse'
|
|
@@ -293,11 +293,81 @@ module ZSGFClient
|
|
|
293
293
|
return data, status_code, headers
|
|
294
294
|
end
|
|
295
295
|
|
|
296
|
+
# 小程序-消息内容安全检测
|
|
297
|
+
# 检测消息内容是否含有违法违规信息
|
|
298
|
+
# @param app_key [String]
|
|
299
|
+
# @param [Hash] opts the optional parameters
|
|
300
|
+
# @option opts [Array<Object>] :request_body 消息内容数据,开发参考:https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/sec-center/sec-check/msgSecCheck.html
|
|
301
|
+
# @return [Object]
|
|
302
|
+
def wechat_msg_sec_check(app_key, opts = {})
|
|
303
|
+
data, _status_code, _headers = wechat_msg_sec_check_with_http_info(app_key, opts)
|
|
304
|
+
data
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# 小程序-消息内容安全检测
|
|
308
|
+
# 检测消息内容是否含有违法违规信息
|
|
309
|
+
# @param app_key [String]
|
|
310
|
+
# @param [Hash] opts the optional parameters
|
|
311
|
+
# @option opts [Array<Object>] :request_body 消息内容数据,开发参考:https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/sec-center/sec-check/msgSecCheck.html
|
|
312
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
313
|
+
def wechat_msg_sec_check_with_http_info(app_key, opts = {})
|
|
314
|
+
if @api_client.config.debugging
|
|
315
|
+
@api_client.config.logger.debug 'Calling API: WechatApi.wechat_msg_sec_check ...'
|
|
316
|
+
end
|
|
317
|
+
# verify the required parameter 'app_key' is set
|
|
318
|
+
if @api_client.config.client_side_validation && app_key.nil?
|
|
319
|
+
fail ArgumentError, "Missing the required parameter 'app_key' when calling WechatApi.wechat_msg_sec_check"
|
|
320
|
+
end
|
|
321
|
+
# resource path
|
|
322
|
+
local_var_path = '/Wechat/{appKey}/MsgSecCheck'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
|
|
323
|
+
|
|
324
|
+
# query parameters
|
|
325
|
+
query_params = opts[:query_params] || {}
|
|
326
|
+
|
|
327
|
+
# header parameters
|
|
328
|
+
header_params = opts[:header_params] || {}
|
|
329
|
+
# HTTP header 'Accept' (if needed)
|
|
330
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
331
|
+
# HTTP header 'Content-Type'
|
|
332
|
+
content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
|
333
|
+
if !content_type.nil?
|
|
334
|
+
header_params['Content-Type'] = content_type
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# form parameters
|
|
338
|
+
form_params = opts[:form_params] || {}
|
|
339
|
+
|
|
340
|
+
# http body (model)
|
|
341
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
342
|
+
|
|
343
|
+
# return_type
|
|
344
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
345
|
+
|
|
346
|
+
# auth_names
|
|
347
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
348
|
+
|
|
349
|
+
new_options = opts.merge(
|
|
350
|
+
:operation => :"WechatApi.wechat_msg_sec_check",
|
|
351
|
+
:header_params => header_params,
|
|
352
|
+
:query_params => query_params,
|
|
353
|
+
:form_params => form_params,
|
|
354
|
+
:body => post_body,
|
|
355
|
+
:auth_names => auth_names,
|
|
356
|
+
:return_type => return_type
|
|
357
|
+
)
|
|
358
|
+
|
|
359
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
360
|
+
if @api_client.config.debugging
|
|
361
|
+
@api_client.config.logger.debug "API called: WechatApi#wechat_msg_sec_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
362
|
+
end
|
|
363
|
+
return data, status_code, headers
|
|
364
|
+
end
|
|
365
|
+
|
|
296
366
|
# 公众号H5-发送一次性订阅消息
|
|
297
367
|
# 发送公众号H5一次性订阅消息
|
|
298
368
|
# @param app_key [String]
|
|
299
369
|
# @param [Hash] opts the optional parameters
|
|
300
|
-
# @option opts [Object] :
|
|
370
|
+
# @option opts [Array<Object>] :request_body 订阅消息数据,开发参考:https://dwz.cn/IXptek5n
|
|
301
371
|
# @return [StringApiResponse]
|
|
302
372
|
def wechat_subscribe_msg(app_key, opts = {})
|
|
303
373
|
data, _status_code, _headers = wechat_subscribe_msg_with_http_info(app_key, opts)
|
|
@@ -308,7 +378,7 @@ module ZSGFClient
|
|
|
308
378
|
# 发送公众号H5一次性订阅消息
|
|
309
379
|
# @param app_key [String]
|
|
310
380
|
# @param [Hash] opts the optional parameters
|
|
311
|
-
# @option opts [Object] :
|
|
381
|
+
# @option opts [Array<Object>] :request_body 订阅消息数据,开发参考:https://dwz.cn/IXptek5n
|
|
312
382
|
# @return [Array<(StringApiResponse, Integer, Hash)>] StringApiResponse data, response status code and response headers
|
|
313
383
|
def wechat_subscribe_msg_with_http_info(app_key, opts = {})
|
|
314
384
|
if @api_client.config.debugging
|
|
@@ -338,7 +408,7 @@ module ZSGFClient
|
|
|
338
408
|
form_params = opts[:form_params] || {}
|
|
339
409
|
|
|
340
410
|
# http body (model)
|
|
341
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
|
411
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
342
412
|
|
|
343
413
|
# return_type
|
|
344
414
|
return_type = opts[:debug_return_type] || 'StringApiResponse'
|
|
@@ -367,7 +437,7 @@ module ZSGFClient
|
|
|
367
437
|
# 发送小程序订阅消息
|
|
368
438
|
# @param app_key [String]
|
|
369
439
|
# @param [Hash] opts the optional parameters
|
|
370
|
-
# @option opts [Object] :
|
|
440
|
+
# @option opts [Array<Object>] :request_body 订阅消息数据,开发参考:https://dwz.cn/bohXaCnp
|
|
371
441
|
# @return [StringApiResponse]
|
|
372
442
|
def wechat_subscribe_send(app_key, opts = {})
|
|
373
443
|
data, _status_code, _headers = wechat_subscribe_send_with_http_info(app_key, opts)
|
|
@@ -378,7 +448,7 @@ module ZSGFClient
|
|
|
378
448
|
# 发送小程序订阅消息
|
|
379
449
|
# @param app_key [String]
|
|
380
450
|
# @param [Hash] opts the optional parameters
|
|
381
|
-
# @option opts [Object] :
|
|
451
|
+
# @option opts [Array<Object>] :request_body 订阅消息数据,开发参考:https://dwz.cn/bohXaCnp
|
|
382
452
|
# @return [Array<(StringApiResponse, Integer, Hash)>] StringApiResponse data, response status code and response headers
|
|
383
453
|
def wechat_subscribe_send_with_http_info(app_key, opts = {})
|
|
384
454
|
if @api_client.config.debugging
|
|
@@ -408,7 +478,7 @@ module ZSGFClient
|
|
|
408
478
|
form_params = opts[:form_params] || {}
|
|
409
479
|
|
|
410
480
|
# http body (model)
|
|
411
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
|
481
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
412
482
|
|
|
413
483
|
# return_type
|
|
414
484
|
return_type = opts[:debug_return_type] || 'StringApiResponse'
|
|
@@ -437,7 +507,7 @@ module ZSGFClient
|
|
|
437
507
|
# 生成小程序的网页跳转地址
|
|
438
508
|
# @param app_key [String]
|
|
439
509
|
# @param [Hash] opts the optional parameters
|
|
440
|
-
# @option opts [Object] :
|
|
510
|
+
# @option opts [Array<Object>] :request_body 跳转地址数据,开发参考:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/url-link/urllink.generate.html
|
|
441
511
|
# @return [StringApiResponse]
|
|
442
512
|
def wechat_url_link_generate(app_key, opts = {})
|
|
443
513
|
data, _status_code, _headers = wechat_url_link_generate_with_http_info(app_key, opts)
|
|
@@ -448,7 +518,7 @@ module ZSGFClient
|
|
|
448
518
|
# 生成小程序的网页跳转地址
|
|
449
519
|
# @param app_key [String]
|
|
450
520
|
# @param [Hash] opts the optional parameters
|
|
451
|
-
# @option opts [Object] :
|
|
521
|
+
# @option opts [Array<Object>] :request_body 跳转地址数据,开发参考:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/url-link/urllink.generate.html
|
|
452
522
|
# @return [Array<(StringApiResponse, Integer, Hash)>] StringApiResponse data, response status code and response headers
|
|
453
523
|
def wechat_url_link_generate_with_http_info(app_key, opts = {})
|
|
454
524
|
if @api_client.config.debugging
|
|
@@ -478,7 +548,7 @@ module ZSGFClient
|
|
|
478
548
|
form_params = opts[:form_params] || {}
|
|
479
549
|
|
|
480
550
|
# http body (model)
|
|
481
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
|
551
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
482
552
|
|
|
483
553
|
# return_type
|
|
484
554
|
return_type = opts[:debug_return_type] || 'StringApiResponse'
|
|
@@ -573,7 +643,7 @@ module ZSGFClient
|
|
|
573
643
|
# 获取小程序码
|
|
574
644
|
# @param app_key [String]
|
|
575
645
|
# @param [Hash] opts the optional parameters
|
|
576
|
-
# @option opts [Object] :
|
|
646
|
+
# @option opts [Array<Object>] :request_body 小程序码数据,开发参考:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html
|
|
577
647
|
# @return [File]
|
|
578
648
|
def wechat_wxa_code_get(app_key, opts = {})
|
|
579
649
|
data, _status_code, _headers = wechat_wxa_code_get_with_http_info(app_key, opts)
|
|
@@ -584,7 +654,7 @@ module ZSGFClient
|
|
|
584
654
|
# 获取小程序码
|
|
585
655
|
# @param app_key [String]
|
|
586
656
|
# @param [Hash] opts the optional parameters
|
|
587
|
-
# @option opts [Object] :
|
|
657
|
+
# @option opts [Array<Object>] :request_body 小程序码数据,开发参考:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html
|
|
588
658
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
589
659
|
def wechat_wxa_code_get_with_http_info(app_key, opts = {})
|
|
590
660
|
if @api_client.config.debugging
|
|
@@ -614,7 +684,7 @@ module ZSGFClient
|
|
|
614
684
|
form_params = opts[:form_params] || {}
|
|
615
685
|
|
|
616
686
|
# http body (model)
|
|
617
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
|
687
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
618
688
|
|
|
619
689
|
# return_type
|
|
620
690
|
return_type = opts[:debug_return_type] || 'File'
|
|
@@ -643,7 +713,7 @@ module ZSGFClient
|
|
|
643
713
|
# 获取无限制的小程序码
|
|
644
714
|
# @param app_key [String]
|
|
645
715
|
# @param [Hash] opts the optional parameters
|
|
646
|
-
# @option opts [Object] :
|
|
716
|
+
# @option opts [Array<Object>] :request_body 小程序码数据,开发参考:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html
|
|
647
717
|
# @return [File]
|
|
648
718
|
def wechat_wxa_code_get_unlimited(app_key, opts = {})
|
|
649
719
|
data, _status_code, _headers = wechat_wxa_code_get_unlimited_with_http_info(app_key, opts)
|
|
@@ -654,7 +724,7 @@ module ZSGFClient
|
|
|
654
724
|
# 获取无限制的小程序码
|
|
655
725
|
# @param app_key [String]
|
|
656
726
|
# @param [Hash] opts the optional parameters
|
|
657
|
-
# @option opts [Object] :
|
|
727
|
+
# @option opts [Array<Object>] :request_body 小程序码数据,开发参考:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html
|
|
658
728
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
659
729
|
def wechat_wxa_code_get_unlimited_with_http_info(app_key, opts = {})
|
|
660
730
|
if @api_client.config.debugging
|
|
@@ -684,7 +754,7 @@ module ZSGFClient
|
|
|
684
754
|
form_params = opts[:form_params] || {}
|
|
685
755
|
|
|
686
756
|
# http body (model)
|
|
687
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
|
757
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
688
758
|
|
|
689
759
|
# return_type
|
|
690
760
|
return_type = opts[:debug_return_type] || 'File'
|
|
@@ -66,9 +66,11 @@ module ZSGFClient
|
|
|
66
66
|
# List of attributes with nullable: true
|
|
67
67
|
def self.openapi_nullable
|
|
68
68
|
Set.new([
|
|
69
|
+
:'title',
|
|
69
70
|
:'tags',
|
|
70
71
|
:'description',
|
|
71
72
|
:'permissions',
|
|
73
|
+
:'enable'
|
|
72
74
|
])
|
|
73
75
|
end
|
|
74
76
|
|
|
@@ -91,7 +93,7 @@ module ZSGFClient
|
|
|
91
93
|
if attributes.key?(:'title')
|
|
92
94
|
self.title = attributes[:'title']
|
|
93
95
|
else
|
|
94
|
-
self.title = '
|
|
96
|
+
self.title = ''
|
|
95
97
|
end
|
|
96
98
|
|
|
97
99
|
if attributes.key?(:'tags')
|
|
@@ -114,8 +116,6 @@ module ZSGFClient
|
|
|
114
116
|
|
|
115
117
|
if attributes.key?(:'enable')
|
|
116
118
|
self.enable = attributes[:'enable']
|
|
117
|
-
else
|
|
118
|
-
self.enable = false
|
|
119
119
|
end
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -124,14 +124,6 @@ module ZSGFClient
|
|
|
124
124
|
def list_invalid_properties
|
|
125
125
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
126
126
|
invalid_properties = Array.new
|
|
127
|
-
if @title.nil?
|
|
128
|
-
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
if @title.to_s.length < 1
|
|
132
|
-
invalid_properties.push('invalid value for "title", the character length must be great than or equal to 1.')
|
|
133
|
-
end
|
|
134
|
-
|
|
135
127
|
invalid_properties
|
|
136
128
|
end
|
|
137
129
|
|
|
@@ -139,25 +131,9 @@ module ZSGFClient
|
|
|
139
131
|
# @return true if the model is valid
|
|
140
132
|
def valid?
|
|
141
133
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
142
|
-
return false if @title.nil?
|
|
143
|
-
return false if @title.to_s.length < 1
|
|
144
134
|
true
|
|
145
135
|
end
|
|
146
136
|
|
|
147
|
-
# Custom attribute writer method with validation
|
|
148
|
-
# @param [Object] title Value to be assigned
|
|
149
|
-
def title=(title)
|
|
150
|
-
if title.nil?
|
|
151
|
-
fail ArgumentError, 'title cannot be nil'
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
if title.to_s.length < 1
|
|
155
|
-
fail ArgumentError, 'invalid value for "title", the character length must be great than or equal to 1.'
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
@title = title
|
|
159
|
-
end
|
|
160
|
-
|
|
161
137
|
# Checks equality by comparing each attribute.
|
|
162
138
|
# @param [Object] Object to be compared
|
|
163
139
|
def ==(o)
|
|
@@ -15,28 +15,40 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module ZSGFClient
|
|
17
17
|
class AppUserListResponse
|
|
18
|
+
# 用户ID
|
|
18
19
|
attr_accessor :id
|
|
19
20
|
|
|
21
|
+
# 用户的联合ID
|
|
20
22
|
attr_accessor :union_id
|
|
21
23
|
|
|
24
|
+
# 用户所在平台
|
|
22
25
|
attr_accessor :platform
|
|
23
26
|
|
|
27
|
+
# 用户名
|
|
24
28
|
attr_accessor :user_name
|
|
25
29
|
|
|
30
|
+
# 用户昵称
|
|
26
31
|
attr_accessor :nick_name
|
|
27
32
|
|
|
33
|
+
# 用户邮箱
|
|
28
34
|
attr_accessor :email
|
|
29
35
|
|
|
36
|
+
# 用户电话
|
|
30
37
|
attr_accessor :phone
|
|
31
38
|
|
|
39
|
+
# 用户头像URL
|
|
32
40
|
attr_accessor :avatar
|
|
33
41
|
|
|
42
|
+
# 用户角色
|
|
34
43
|
attr_accessor :role
|
|
35
44
|
|
|
45
|
+
# 用户角色ID
|
|
36
46
|
attr_accessor :role_id
|
|
37
47
|
|
|
48
|
+
# 用户创建日期
|
|
38
49
|
attr_accessor :create_date
|
|
39
50
|
|
|
51
|
+
# 用户最后更新日期
|
|
40
52
|
attr_accessor :last_update
|
|
41
53
|
|
|
42
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#全部 API 文档
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.13.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module ZSGFClient
|
|
17
|
+
class AppUserResetEmailRequest
|
|
18
|
+
# 邮箱
|
|
19
|
+
attr_accessor :email
|
|
20
|
+
|
|
21
|
+
# 邮箱验证码
|
|
22
|
+
attr_accessor :code
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'email' => :'email',
|
|
28
|
+
:'code' => :'code'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
acceptable_attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'email' => :'String',
|
|
46
|
+
:'code' => :'String'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
:'email',
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ZSGFClient::AppUserResetEmailRequest` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ZSGFClient::AppUserResetEmailRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
69
|
+
end
|
|
70
|
+
h[k.to_sym] = v
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'email')
|
|
74
|
+
self.email = attributes[:'email']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'code')
|
|
78
|
+
self.code = attributes[:'code']
|
|
79
|
+
else
|
|
80
|
+
self.code = nil
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
|
+
# @return Array for valid properties with the reasons
|
|
86
|
+
def list_invalid_properties
|
|
87
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
88
|
+
invalid_properties = Array.new
|
|
89
|
+
if @code.nil?
|
|
90
|
+
invalid_properties.push('invalid value for "code", code cannot be nil.')
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if @code.to_s.length < 1
|
|
94
|
+
invalid_properties.push('invalid value for "code", the character length must be great than or equal to 1.')
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
pattern = Regexp.new(/\d{4,8}$/)
|
|
98
|
+
if @code !~ pattern
|
|
99
|
+
invalid_properties.push("invalid value for \"code\", must conform to the pattern #{pattern}.")
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
invalid_properties
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Check to see if the all the properties in the model are valid
|
|
106
|
+
# @return true if the model is valid
|
|
107
|
+
def valid?
|
|
108
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
109
|
+
return false if @code.nil?
|
|
110
|
+
return false if @code.to_s.length < 1
|
|
111
|
+
return false if @code !~ Regexp.new(/\d{4,8}$/)
|
|
112
|
+
true
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Custom attribute writer method with validation
|
|
116
|
+
# @param [Object] code Value to be assigned
|
|
117
|
+
def code=(code)
|
|
118
|
+
if code.nil?
|
|
119
|
+
fail ArgumentError, 'code cannot be nil'
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if code.to_s.length < 1
|
|
123
|
+
fail ArgumentError, 'invalid value for "code", the character length must be great than or equal to 1.'
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
pattern = Regexp.new(/\d{4,8}$/)
|
|
127
|
+
if code !~ pattern
|
|
128
|
+
fail ArgumentError, "invalid value for \"code\", must conform to the pattern #{pattern}."
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
@code = code
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Checks equality by comparing each attribute.
|
|
135
|
+
# @param [Object] Object to be compared
|
|
136
|
+
def ==(o)
|
|
137
|
+
return true if self.equal?(o)
|
|
138
|
+
self.class == o.class &&
|
|
139
|
+
email == o.email &&
|
|
140
|
+
code == o.code
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# @see the `==` method
|
|
144
|
+
# @param [Object] Object to be compared
|
|
145
|
+
def eql?(o)
|
|
146
|
+
self == o
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Calculates hash code according to all attributes.
|
|
150
|
+
# @return [Integer] Hash code
|
|
151
|
+
def hash
|
|
152
|
+
[email, code].hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Builds the object from hash
|
|
156
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
157
|
+
# @return [Object] Returns the model itself
|
|
158
|
+
def self.build_from_hash(attributes)
|
|
159
|
+
return nil unless attributes.is_a?(Hash)
|
|
160
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
161
|
+
transformed_hash = {}
|
|
162
|
+
openapi_types.each_pair do |key, type|
|
|
163
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
164
|
+
transformed_hash["#{key}"] = nil
|
|
165
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
166
|
+
# check to ensure the input is an array given that the attribute
|
|
167
|
+
# is documented as an array but the input is not
|
|
168
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
169
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
170
|
+
end
|
|
171
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
172
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
new(transformed_hash)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Deserializes the data based on type
|
|
179
|
+
# @param string type Data type
|
|
180
|
+
# @param string value Value to be deserialized
|
|
181
|
+
# @return [Object] Deserialized data
|
|
182
|
+
def self._deserialize(type, value)
|
|
183
|
+
case type.to_sym
|
|
184
|
+
when :Time
|
|
185
|
+
Time.parse(value)
|
|
186
|
+
when :Date
|
|
187
|
+
Date.parse(value)
|
|
188
|
+
when :String
|
|
189
|
+
value.to_s
|
|
190
|
+
when :Integer
|
|
191
|
+
value.to_i
|
|
192
|
+
when :Float
|
|
193
|
+
value.to_f
|
|
194
|
+
when :Boolean
|
|
195
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
196
|
+
true
|
|
197
|
+
else
|
|
198
|
+
false
|
|
199
|
+
end
|
|
200
|
+
when :Object
|
|
201
|
+
# generic object (usually a Hash), return directly
|
|
202
|
+
value
|
|
203
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
204
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
205
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
206
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
207
|
+
k_type = Regexp.last_match[:k_type]
|
|
208
|
+
v_type = Regexp.last_match[:v_type]
|
|
209
|
+
{}.tap do |hash|
|
|
210
|
+
value.each do |k, v|
|
|
211
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
else # model
|
|
215
|
+
# models (e.g. Pet) or oneOf
|
|
216
|
+
klass = ZSGFClient.const_get(type)
|
|
217
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Returns the string representation of the object
|
|
222
|
+
# @return [String] String presentation of the object
|
|
223
|
+
def to_s
|
|
224
|
+
to_hash.to_s
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
|
229
|
+
def to_body
|
|
230
|
+
to_hash
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Returns the object in the form of hash
|
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
|
235
|
+
def to_hash
|
|
236
|
+
hash = {}
|
|
237
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
238
|
+
value = self.send(attr)
|
|
239
|
+
if value.nil?
|
|
240
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
241
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
hash[param] = _to_hash(value)
|
|
245
|
+
end
|
|
246
|
+
hash
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Outputs non-array value in the form of hash
|
|
250
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
251
|
+
# @param [Object] value Any valid value
|
|
252
|
+
# @return [Hash] Returns the value in the form of hash
|
|
253
|
+
def _to_hash(value)
|
|
254
|
+
if value.is_a?(Array)
|
|
255
|
+
value.compact.map { |v| _to_hash(v) }
|
|
256
|
+
elsif value.is_a?(Hash)
|
|
257
|
+
{}.tap do |hash|
|
|
258
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
259
|
+
end
|
|
260
|
+
elsif value.respond_to? :to_hash
|
|
261
|
+
value.to_hash
|
|
262
|
+
else
|
|
263
|
+
value
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
end
|