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.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AccessTokenApi.md +14 -14
  3. data/docs/AccessTokenPutRequest.md +2 -2
  4. data/docs/AppUserListResponse.md +12 -12
  5. data/docs/AppUserResetEmailRequest.md +20 -0
  6. data/docs/AppUserResetPhoneRequest.md +20 -0
  7. data/docs/AppUserResetPwdRequest.md +4 -8
  8. data/docs/CommonFriendModel.md +3 -3
  9. data/docs/EmailSignInRequest.md +3 -3
  10. data/docs/EmailSignUpRequest.md +5 -5
  11. data/docs/FileApi.md +4 -4
  12. data/docs/FollowerModel.md +12 -12
  13. data/docs/FollowerPutModel.md +6 -6
  14. data/docs/GeoLocation.md +62 -0
  15. data/docs/GeoLocationModel.md +4 -4
  16. data/docs/GeoLocationResponseModel.md +4 -4
  17. data/docs/GetUserProfileResult.md +24 -0
  18. data/docs/{UserFollowingResultApiResponse.md → GetUserProfileResultApiResponse.md} +3 -3
  19. data/docs/MySqlGeometry.md +26 -0
  20. data/docs/OAuthAccountSignInRequest.md +3 -3
  21. data/docs/PhoneSignInRequest.md +3 -3
  22. data/docs/PhoneSignUpRequest.md +7 -7
  23. data/docs/QRCodePreSignInRequest.md +3 -3
  24. data/docs/QRCodeScanRequest.md +1 -1
  25. data/docs/QRCodeSignInRequest.md +1 -1
  26. data/docs/QRCodeSignUpRequest.md +8 -8
  27. data/docs/RecommendFriend.md +21 -11
  28. data/docs/SendEmailCodeRequest.md +2 -2
  29. data/docs/SendSMSCodeRequest.md +2 -2
  30. data/docs/SignInRequest.md +3 -3
  31. data/docs/SignUpRequest.md +8 -8
  32. data/docs/StorageApi.md +86 -6
  33. data/docs/UnionIDSignInRequest.md +3 -3
  34. data/docs/UnionIDSignUpRequest.md +10 -10
  35. data/docs/UpdateProfileRequest.md +27 -15
  36. data/docs/UserApi.md +358 -54
  37. data/docs/UserFriendsNearByResult.md +3 -3
  38. data/docs/UserProfileResult.md +2 -28
  39. data/docs/WechatApi.md +86 -12
  40. data/lib/zsgf_client/api/access_token_api.rb +14 -14
  41. data/lib/zsgf_client/api/file_api.rb +3 -3
  42. data/lib/zsgf_client/api/storage_api.rb +105 -6
  43. data/lib/zsgf_client/api/user_api.rb +349 -60
  44. data/lib/zsgf_client/api/wechat_api.rb +88 -18
  45. data/lib/zsgf_client/models/access_token_put_request.rb +3 -27
  46. data/lib/zsgf_client/models/app_user_list_response.rb +12 -0
  47. data/lib/zsgf_client/models/app_user_reset_email_request.rb +269 -0
  48. data/lib/zsgf_client/models/app_user_reset_phone_request.rb +269 -0
  49. data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +52 -70
  50. data/lib/zsgf_client/models/common_friend_model.rb +3 -0
  51. data/lib/zsgf_client/models/email_sign_in_request.rb +38 -1
  52. data/lib/zsgf_client/models/email_sign_up_request.rb +30 -8
  53. data/lib/zsgf_client/models/follower_model.rb +12 -0
  54. data/lib/zsgf_client/models/follower_put_model.rb +6 -0
  55. data/lib/zsgf_client/models/geo_location.rb +750 -0
  56. data/lib/zsgf_client/models/geo_location_model.rb +262 -12
  57. data/lib/zsgf_client/models/geo_location_response_model.rb +262 -12
  58. data/lib/zsgf_client/models/{user_following_result.rb → get_user_profile_result.rb} +37 -18
  59. data/lib/zsgf_client/models/{user_following_result_api_response.rb → get_user_profile_result_api_response.rb} +4 -4
  60. data/lib/zsgf_client/models/my_sql_geometry.rb +260 -0
  61. data/lib/zsgf_client/models/o_auth_account_sign_in_request.rb +78 -1
  62. data/lib/zsgf_client/models/phone_sign_in_request.rb +49 -1
  63. data/lib/zsgf_client/models/phone_sign_up_request.rb +29 -24
  64. data/lib/zsgf_client/models/qr_code_pre_sign_in_request.rb +97 -0
  65. data/lib/zsgf_client/models/qr_code_scan_request.rb +1 -0
  66. data/lib/zsgf_client/models/qr_code_sign_in_request.rb +1 -0
  67. data/lib/zsgf_client/models/qr_code_sign_up_request.rb +38 -33
  68. data/lib/zsgf_client/models/recommend_friend.rb +69 -4
  69. data/lib/zsgf_client/models/send_email_code_request.rb +2 -1
  70. data/lib/zsgf_client/models/send_sms_code_request.rb +2 -2
  71. data/lib/zsgf_client/models/sign_in_request.rb +77 -11
  72. data/lib/zsgf_client/models/sign_up_request.rb +47 -35
  73. data/lib/zsgf_client/models/union_id_sign_in_request.rb +78 -1
  74. data/lib/zsgf_client/models/union_id_sign_up_request.rb +92 -45
  75. data/lib/zsgf_client/models/update_profile_request.rb +99 -24
  76. data/lib/zsgf_client/models/user_friends_near_by_result.rb +10 -7
  77. data/lib/zsgf_client/models/user_profile_result.rb +7 -133
  78. data/lib/zsgf_client/version.rb +1 -1
  79. data/lib/zsgf_client.rb +6 -2
  80. data/spec/api/access_token_api_spec.rb +7 -7
  81. data/spec/api/file_api_spec.rb +1 -1
  82. data/spec/api/storage_api_spec.rb +17 -1
  83. data/spec/api/user_api_spec.rb +81 -23
  84. data/spec/api/wechat_api_spec.rb +19 -6
  85. data/spec/models/{user_following_result_spec.rb → app_user_reset_email_request_spec.rb} +8 -8
  86. data/spec/models/app_user_reset_phone_request_spec.rb +42 -0
  87. data/spec/models/app_user_reset_pwd_request_spec.rb +2 -14
  88. data/spec/models/geo_location_model_spec.rb +3 -3
  89. data/spec/models/geo_location_response_model_spec.rb +3 -3
  90. data/spec/models/geo_location_spec.rb +168 -0
  91. data/spec/models/{user_following_result_api_response_spec.rb → get_user_profile_result_api_response_spec.rb} +6 -6
  92. data/spec/models/get_user_profile_result_spec.rb +54 -0
  93. data/spec/models/my_sql_geometry_spec.rb +60 -0
  94. data/spec/models/recommend_friend_spec.rb +30 -0
  95. data/spec/models/update_profile_request_spec.rb +36 -0
  96. data/spec/models/user_friends_near_by_result_spec.rb +1 -1
  97. data/spec/models/user_profile_result_spec.rb +1 -79
  98. metadata +215 -199
  99. data/docs/UserFollowingResult.md +0 -20
@@ -223,6 +223,69 @@ module ZSGFClient
223
223
  return data, status_code, headers
224
224
  end
225
225
 
226
+ # 注销账号
227
+ # 清除用户所有附属数据,并注销账号
228
+ # @param app_key [String]
229
+ # @param [Hash] opts the optional parameters
230
+ # @return [BooleanApiResponse]
231
+ def user_deactivate_hard(app_key, opts = {})
232
+ data, _status_code, _headers = user_deactivate_hard_with_http_info(app_key, opts)
233
+ data
234
+ end
235
+
236
+ # 注销账号
237
+ # 清除用户所有附属数据,并注销账号
238
+ # @param app_key [String]
239
+ # @param [Hash] opts the optional parameters
240
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
241
+ def user_deactivate_hard_with_http_info(app_key, opts = {})
242
+ if @api_client.config.debugging
243
+ @api_client.config.logger.debug 'Calling API: UserApi.user_deactivate_hard ...'
244
+ end
245
+ # verify the required parameter 'app_key' is set
246
+ if @api_client.config.client_side_validation && app_key.nil?
247
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_deactivate_hard"
248
+ end
249
+ # resource path
250
+ local_var_path = '/User/{appKey}/DeactivateHard'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
251
+
252
+ # query parameters
253
+ query_params = opts[:query_params] || {}
254
+
255
+ # header parameters
256
+ header_params = opts[:header_params] || {}
257
+ # HTTP header 'Accept' (if needed)
258
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
259
+
260
+ # form parameters
261
+ form_params = opts[:form_params] || {}
262
+
263
+ # http body (model)
264
+ post_body = opts[:debug_body]
265
+
266
+ # return_type
267
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
268
+
269
+ # auth_names
270
+ auth_names = opts[:debug_auth_names] || ['Bearer']
271
+
272
+ new_options = opts.merge(
273
+ :operation => :"UserApi.user_deactivate_hard",
274
+ :header_params => header_params,
275
+ :query_params => query_params,
276
+ :form_params => form_params,
277
+ :body => post_body,
278
+ :auth_names => auth_names,
279
+ :return_type => return_type
280
+ )
281
+
282
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
283
+ if @api_client.config.debugging
284
+ @api_client.config.logger.debug "API called: UserApi#user_deactivate_hard\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
285
+ end
286
+ return data, status_code, headers
287
+ end
288
+
226
289
  # 删除用户
227
290
  # 根据用户ID删除用户
228
291
  # @param id [Integer] 用户ID
@@ -646,6 +709,7 @@ module ZSGFClient
646
709
  # @param [Hash] opts the optional parameters
647
710
  # @option opts [String] :tag 标签
648
711
  # @option opts [String] :status 状态
712
+ # @option opts [Integer] :target_user_id 指定用户的粉丝 (default to 0)
649
713
  # @option opts [Integer] :skip 跳过的记录数 (default to 0)
650
714
  # @option opts [Integer] :take 获取的记录数 (default to 10)
651
715
  # @return [UserFollowersResultApiResponse]
@@ -660,6 +724,7 @@ module ZSGFClient
660
724
  # @param [Hash] opts the optional parameters
661
725
  # @option opts [String] :tag 标签
662
726
  # @option opts [String] :status 状态
727
+ # @option opts [Integer] :target_user_id 指定用户的粉丝 (default to 0)
663
728
  # @option opts [Integer] :skip 跳过的记录数 (default to 0)
664
729
  # @option opts [Integer] :take 获取的记录数 (default to 10)
665
730
  # @return [Array<(UserFollowersResultApiResponse, Integer, Hash)>] UserFollowersResultApiResponse data, response status code and response headers
@@ -678,6 +743,7 @@ module ZSGFClient
678
743
  query_params = opts[:query_params] || {}
679
744
  query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
680
745
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
746
+ query_params[:'targetUserId'] = opts[:'target_user_id'] if !opts[:'target_user_id'].nil?
681
747
  query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
682
748
  query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
683
749
 
@@ -715,29 +781,35 @@ module ZSGFClient
715
781
  return data, status_code, headers
716
782
  end
717
783
 
718
- # 获取我的关注列表
719
- # 根据条件获取我的关注列表
784
+ # 获取当前用户的关注列表,或者判断是否关注某个特定用户。
785
+ # 根据条件获取我的关注列表,或判断是否关注某个用户
720
786
  # @param app_key [String]
721
787
  # @param [Hash] opts the optional parameters
722
- # @option opts [String] :tag 标签
723
- # @option opts [String] :status 状态
724
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
725
- # @option opts [Integer] :take 获取的记录数 (default to 10)
726
- # @return [UserFollowingResultApiResponse]
788
+ # @option opts [String] :tag 用于过滤关注列表的标签(可选)。
789
+ # @option opts [String] :status 用于过滤关注列表的状态(可选)。
790
+ # @option opts [Integer] :target_user_id 指定用户的关注记录,如果不提供则默认为当前用户的关注。 (default to 0)
791
+ # @option opts [Integer] :skip 跳过的记录数,用于分页(默认0)。 (default to 0)
792
+ # @option opts [Integer] :take 获取的记录数,用于分页(默认10)。 (default to 10)
793
+ # @option opts [Integer] :check_user_id 要判断是否关注的目标用户ID。如果提供此参数,方法将返回一个布尔值,表示当前用户是否关注该目标用户。
794
+ # @option opts [Boolean] :only_ids 是否只返回关注用户的ID集合,默认为false(即返回完整的关注用户信息)。 (default to false)
795
+ # @return [BooleanApiResponse]
727
796
  def user_following(app_key, opts = {})
728
797
  data, _status_code, _headers = user_following_with_http_info(app_key, opts)
729
798
  data
730
799
  end
731
800
 
732
- # 获取我的关注列表
733
- # 根据条件获取我的关注列表
801
+ # 获取当前用户的关注列表,或者判断是否关注某个特定用户。
802
+ # 根据条件获取我的关注列表,或判断是否关注某个用户
734
803
  # @param app_key [String]
735
804
  # @param [Hash] opts the optional parameters
736
- # @option opts [String] :tag 标签
737
- # @option opts [String] :status 状态
738
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
739
- # @option opts [Integer] :take 获取的记录数 (default to 10)
740
- # @return [Array<(UserFollowingResultApiResponse, Integer, Hash)>] UserFollowingResultApiResponse data, response status code and response headers
805
+ # @option opts [String] :tag 用于过滤关注列表的标签(可选)。
806
+ # @option opts [String] :status 用于过滤关注列表的状态(可选)。
807
+ # @option opts [Integer] :target_user_id 指定用户的关注记录,如果不提供则默认为当前用户的关注。 (default to 0)
808
+ # @option opts [Integer] :skip 跳过的记录数,用于分页(默认0)。 (default to 0)
809
+ # @option opts [Integer] :take 获取的记录数,用于分页(默认10)。 (default to 10)
810
+ # @option opts [Integer] :check_user_id 要判断是否关注的目标用户ID。如果提供此参数,方法将返回一个布尔值,表示当前用户是否关注该目标用户。
811
+ # @option opts [Boolean] :only_ids 是否只返回关注用户的ID集合,默认为false(即返回完整的关注用户信息)。 (default to false)
812
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
741
813
  def user_following_with_http_info(app_key, opts = {})
742
814
  if @api_client.config.debugging
743
815
  @api_client.config.logger.debug 'Calling API: UserApi.user_following ...'
@@ -753,8 +825,11 @@ module ZSGFClient
753
825
  query_params = opts[:query_params] || {}
754
826
  query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
755
827
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
828
+ query_params[:'targetUserId'] = opts[:'target_user_id'] if !opts[:'target_user_id'].nil?
756
829
  query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
757
830
  query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
831
+ query_params[:'checkUserId'] = opts[:'check_user_id'] if !opts[:'check_user_id'].nil?
832
+ query_params[:'onlyIDs'] = opts[:'only_ids'] if !opts[:'only_ids'].nil?
758
833
 
759
834
  # header parameters
760
835
  header_params = opts[:header_params] || {}
@@ -768,7 +843,7 @@ module ZSGFClient
768
843
  post_body = opts[:debug_body]
769
844
 
770
845
  # return_type
771
- return_type = opts[:debug_return_type] || 'UserFollowingResultApiResponse'
846
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
772
847
 
773
848
  # auth_names
774
849
  auth_names = opts[:debug_auth_names] || ['Bearer']
@@ -790,56 +865,58 @@ module ZSGFClient
790
865
  return data, status_code, headers
791
866
  end
792
867
 
793
- # 附近的用户推荐
794
- # 推荐附近的用户
795
- # @param x [Float] 纬度
796
- # @param y [Float] 经度
797
- # @param distance [Integer] 附近距离,单位:米
868
+ # 获取附近的用户推荐列表
869
+ # 根据地理位置坐标和多种筛选条件,查询附近满足条件的用户列表,支持分页和按距离排序。 地理位置查询使用MySQL的ST_Distance_Sphere函数计算球面距离。 注意:longitude为经度(X轴),latitude为纬度(Y轴),参数顺序与常规坐标系一致
870
+ # @param longitude [Float] 当前用户经度坐标(WGS84坐标系)
871
+ # @param latitude [Float] 当前用户纬度坐标(WGS84坐标系)
798
872
  # @param app_key [String]
799
873
  # @param [Hash] opts the optional parameters
800
- # @option opts [String] :gender 性别
801
- # @option opts [Integer] :age_s 年龄段起始
802
- # @option opts [Integer] :age_e 年龄段结束
803
- # @option opts [String] :tag 兴趣标签
804
- # @option opts [String] :type 分类
805
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
806
- # @option opts [Integer] :take 获取的记录数 (default to 10)
874
+ # @option opts [String] :country 国家过滤条件(精确匹配)
875
+ # @option opts [String] :state 省份过滤条件(精确匹配)
876
+ # @option opts [String] :city 城市过滤条件(精确匹配)
877
+ # @option opts [String] :district 区县过滤条件(精确匹配)
878
+ # @option opts [String] :gender 性别过滤条件(可选值示例:Male/Female/Other)
879
+ # @option opts [Integer] :age_s 年龄起始范围(包含,0表示不限制)
880
+ # @option opts [Integer] :age_e 年龄结束范围(包含,0表示不限制)
881
+ # @option opts [String] :tag 兴趣标签过滤(支持模糊匹配,如:\&quot;运动\&quot;)
882
+ # @option opts [Integer] :distance 搜索半径(单位:米,0表示不限制距离) (default to 0)
883
+ # @option opts [Integer] :skip 跳过的记录数(分页起始位置,默认0) (default to 0)
884
+ # @option opts [Integer] :take 获取的记录数(分页大小,默认10,最大100) (default to 10)
807
885
  # @return [UserFriendsNearByResultApiResponse]
808
- def user_friends_near_by(x, y, distance, app_key, opts = {})
809
- data, _status_code, _headers = user_friends_near_by_with_http_info(x, y, distance, app_key, opts)
886
+ def user_friends_near_by(longitude, latitude, app_key, opts = {})
887
+ data, _status_code, _headers = user_friends_near_by_with_http_info(longitude, latitude, app_key, opts)
810
888
  data
811
889
  end
812
890
 
813
- # 附近的用户推荐
814
- # 推荐附近的用户
815
- # @param x [Float] 纬度
816
- # @param y [Float] 经度
817
- # @param distance [Integer] 附近距离,单位:米
891
+ # 获取附近的用户推荐列表
892
+ # 根据地理位置坐标和多种筛选条件,查询附近满足条件的用户列表,支持分页和按距离排序。 地理位置查询使用MySQL的ST_Distance_Sphere函数计算球面距离。 注意:longitude为经度(X轴),latitude为纬度(Y轴),参数顺序与常规坐标系一致
893
+ # @param longitude [Float] 当前用户经度坐标(WGS84坐标系)
894
+ # @param latitude [Float] 当前用户纬度坐标(WGS84坐标系)
818
895
  # @param app_key [String]
819
896
  # @param [Hash] opts the optional parameters
820
- # @option opts [String] :gender 性别
821
- # @option opts [Integer] :age_s 年龄段起始
822
- # @option opts [Integer] :age_e 年龄段结束
823
- # @option opts [String] :tag 兴趣标签
824
- # @option opts [String] :type 分类
825
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
826
- # @option opts [Integer] :take 获取的记录数 (default to 10)
897
+ # @option opts [String] :country 国家过滤条件(精确匹配)
898
+ # @option opts [String] :state 省份过滤条件(精确匹配)
899
+ # @option opts [String] :city 城市过滤条件(精确匹配)
900
+ # @option opts [String] :district 区县过滤条件(精确匹配)
901
+ # @option opts [String] :gender 性别过滤条件(可选值示例:Male/Female/Other)
902
+ # @option opts [Integer] :age_s 年龄起始范围(包含,0表示不限制)
903
+ # @option opts [Integer] :age_e 年龄结束范围(包含,0表示不限制)
904
+ # @option opts [String] :tag 兴趣标签过滤(支持模糊匹配,如:\&quot;运动\&quot;)
905
+ # @option opts [Integer] :distance 搜索半径(单位:米,0表示不限制距离) (default to 0)
906
+ # @option opts [Integer] :skip 跳过的记录数(分页起始位置,默认0) (default to 0)
907
+ # @option opts [Integer] :take 获取的记录数(分页大小,默认10,最大100) (default to 10)
827
908
  # @return [Array<(UserFriendsNearByResultApiResponse, Integer, Hash)>] UserFriendsNearByResultApiResponse data, response status code and response headers
828
- def user_friends_near_by_with_http_info(x, y, distance, app_key, opts = {})
909
+ def user_friends_near_by_with_http_info(longitude, latitude, app_key, opts = {})
829
910
  if @api_client.config.debugging
830
911
  @api_client.config.logger.debug 'Calling API: UserApi.user_friends_near_by ...'
831
912
  end
832
- # verify the required parameter 'x' is set
833
- if @api_client.config.client_side_validation && x.nil?
834
- fail ArgumentError, "Missing the required parameter 'x' when calling UserApi.user_friends_near_by"
835
- end
836
- # verify the required parameter 'y' is set
837
- if @api_client.config.client_side_validation && y.nil?
838
- fail ArgumentError, "Missing the required parameter 'y' when calling UserApi.user_friends_near_by"
913
+ # verify the required parameter 'longitude' is set
914
+ if @api_client.config.client_side_validation && longitude.nil?
915
+ fail ArgumentError, "Missing the required parameter 'longitude' when calling UserApi.user_friends_near_by"
839
916
  end
840
- # verify the required parameter 'distance' is set
841
- if @api_client.config.client_side_validation && distance.nil?
842
- fail ArgumentError, "Missing the required parameter 'distance' when calling UserApi.user_friends_near_by"
917
+ # verify the required parameter 'latitude' is set
918
+ if @api_client.config.client_side_validation && latitude.nil?
919
+ fail ArgumentError, "Missing the required parameter 'latitude' when calling UserApi.user_friends_near_by"
843
920
  end
844
921
  # verify the required parameter 'app_key' is set
845
922
  if @api_client.config.client_side_validation && app_key.nil?
@@ -850,14 +927,17 @@ module ZSGFClient
850
927
 
851
928
  # query parameters
852
929
  query_params = opts[:query_params] || {}
853
- query_params[:'x'] = x
854
- query_params[:'y'] = y
855
- query_params[:'distance'] = distance
930
+ query_params[:'longitude'] = longitude
931
+ query_params[:'latitude'] = latitude
932
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
933
+ query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
934
+ query_params[:'city'] = opts[:'city'] if !opts[:'city'].nil?
935
+ query_params[:'district'] = opts[:'district'] if !opts[:'district'].nil?
856
936
  query_params[:'gender'] = opts[:'gender'] if !opts[:'gender'].nil?
857
937
  query_params[:'ageS'] = opts[:'age_s'] if !opts[:'age_s'].nil?
858
938
  query_params[:'ageE'] = opts[:'age_e'] if !opts[:'age_e'].nil?
859
939
  query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
860
- query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
940
+ query_params[:'distance'] = opts[:'distance'] if !opts[:'distance'].nil?
861
941
  query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
862
942
  query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
863
943
 
@@ -1178,7 +1258,7 @@ module ZSGFClient
1178
1258
  end
1179
1259
 
1180
1260
  # 更新位置
1181
- # 根据位置ID更新位置信息
1261
+ # 此方法用于更新指定位置ID的位置信息。如果位置不存在,则创建一个新的位置。
1182
1262
  # @param id [Integer] 位置ID
1183
1263
  # @param app_key [String]
1184
1264
  # @param [Hash] opts the optional parameters
@@ -1190,7 +1270,7 @@ module ZSGFClient
1190
1270
  end
1191
1271
 
1192
1272
  # 更新位置
1193
- # 根据位置ID更新位置信息
1273
+ # 此方法用于更新指定位置ID的位置信息。如果位置不存在,则创建一个新的位置。
1194
1274
  # @param id [Integer] 位置ID
1195
1275
  # @param app_key [String]
1196
1276
  # @param [Hash] opts the optional parameters
@@ -1475,7 +1555,7 @@ module ZSGFClient
1475
1555
  return data, status_code, headers
1476
1556
  end
1477
1557
 
1478
- # 外部账号 绑定
1558
+ # 外部账号 绑定,如果已存在绑定则直接返回成功
1479
1559
  # 绑定外部账号
1480
1560
  # @param app_key [String]
1481
1561
  # @param [Hash] opts the optional parameters
@@ -1486,7 +1566,7 @@ module ZSGFClient
1486
1566
  data
1487
1567
  end
1488
1568
 
1489
- # 外部账号 绑定
1569
+ # 外部账号 绑定,如果已存在绑定则直接返回成功
1490
1570
  # 绑定外部账号
1491
1571
  # @param app_key [String]
1492
1572
  # @param [Hash] opts the optional parameters
@@ -2026,6 +2106,75 @@ module ZSGFClient
2026
2106
  return data, status_code, headers
2027
2107
  end
2028
2108
 
2109
+ # 获取指定用户资料
2110
+ # 用于他人主页展示
2111
+ # @param user_id [Integer] 用户ID
2112
+ # @param app_key [String]
2113
+ # @param [Hash] opts the optional parameters
2114
+ # @return [GetUserProfileResultApiResponse]
2115
+ def user_profile_by_id(user_id, app_key, opts = {})
2116
+ data, _status_code, _headers = user_profile_by_id_with_http_info(user_id, app_key, opts)
2117
+ data
2118
+ end
2119
+
2120
+ # 获取指定用户资料
2121
+ # 用于他人主页展示
2122
+ # @param user_id [Integer] 用户ID
2123
+ # @param app_key [String]
2124
+ # @param [Hash] opts the optional parameters
2125
+ # @return [Array<(GetUserProfileResultApiResponse, Integer, Hash)>] GetUserProfileResultApiResponse data, response status code and response headers
2126
+ def user_profile_by_id_with_http_info(user_id, app_key, opts = {})
2127
+ if @api_client.config.debugging
2128
+ @api_client.config.logger.debug 'Calling API: UserApi.user_profile_by_id ...'
2129
+ end
2130
+ # verify the required parameter 'user_id' is set
2131
+ if @api_client.config.client_side_validation && user_id.nil?
2132
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.user_profile_by_id"
2133
+ end
2134
+ # verify the required parameter 'app_key' is set
2135
+ if @api_client.config.client_side_validation && app_key.nil?
2136
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_profile_by_id"
2137
+ end
2138
+ # resource path
2139
+ local_var_path = '/User/{appKey}/Profile/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2140
+
2141
+ # query parameters
2142
+ query_params = opts[:query_params] || {}
2143
+
2144
+ # header parameters
2145
+ header_params = opts[:header_params] || {}
2146
+ # HTTP header 'Accept' (if needed)
2147
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2148
+
2149
+ # form parameters
2150
+ form_params = opts[:form_params] || {}
2151
+
2152
+ # http body (model)
2153
+ post_body = opts[:debug_body]
2154
+
2155
+ # return_type
2156
+ return_type = opts[:debug_return_type] || 'GetUserProfileResultApiResponse'
2157
+
2158
+ # auth_names
2159
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2160
+
2161
+ new_options = opts.merge(
2162
+ :operation => :"UserApi.user_profile_by_id",
2163
+ :header_params => header_params,
2164
+ :query_params => query_params,
2165
+ :form_params => form_params,
2166
+ :body => post_body,
2167
+ :auth_names => auth_names,
2168
+ :return_type => return_type
2169
+ )
2170
+
2171
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2172
+ if @api_client.config.debugging
2173
+ @api_client.config.logger.debug "API called: UserApi#user_profile_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2174
+ end
2175
+ return data, status_code, headers
2176
+ end
2177
+
2029
2178
  # 更新用户信息
2030
2179
  # 根据用户ID更新用户信息
2031
2180
  # @param id [Integer] 用户ID
@@ -2382,6 +2531,146 @@ module ZSGFClient
2382
2531
  return data, status_code, headers
2383
2532
  end
2384
2533
 
2534
+ # 重置邮箱
2535
+ # 通过邮箱验证码重置邮箱
2536
+ # @param app_key [String]
2537
+ # @param [Hash] opts the optional parameters
2538
+ # @option opts [AppUserResetEmailRequest] :app_user_reset_email_request 重置邮箱的请求参数
2539
+ # @return [BooleanApiResponse]
2540
+ def user_reset_email(app_key, opts = {})
2541
+ data, _status_code, _headers = user_reset_email_with_http_info(app_key, opts)
2542
+ data
2543
+ end
2544
+
2545
+ # 重置邮箱
2546
+ # 通过邮箱验证码重置邮箱
2547
+ # @param app_key [String]
2548
+ # @param [Hash] opts the optional parameters
2549
+ # @option opts [AppUserResetEmailRequest] :app_user_reset_email_request 重置邮箱的请求参数
2550
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
2551
+ def user_reset_email_with_http_info(app_key, opts = {})
2552
+ if @api_client.config.debugging
2553
+ @api_client.config.logger.debug 'Calling API: UserApi.user_reset_email ...'
2554
+ end
2555
+ # verify the required parameter 'app_key' is set
2556
+ if @api_client.config.client_side_validation && app_key.nil?
2557
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_reset_email"
2558
+ end
2559
+ # resource path
2560
+ local_var_path = '/User/{appKey}/ResetEmail'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2561
+
2562
+ # query parameters
2563
+ query_params = opts[:query_params] || {}
2564
+
2565
+ # header parameters
2566
+ header_params = opts[:header_params] || {}
2567
+ # HTTP header 'Accept' (if needed)
2568
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2569
+ # HTTP header 'Content-Type'
2570
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2571
+ if !content_type.nil?
2572
+ header_params['Content-Type'] = content_type
2573
+ end
2574
+
2575
+ # form parameters
2576
+ form_params = opts[:form_params] || {}
2577
+
2578
+ # http body (model)
2579
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'app_user_reset_email_request'])
2580
+
2581
+ # return_type
2582
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
2583
+
2584
+ # auth_names
2585
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2586
+
2587
+ new_options = opts.merge(
2588
+ :operation => :"UserApi.user_reset_email",
2589
+ :header_params => header_params,
2590
+ :query_params => query_params,
2591
+ :form_params => form_params,
2592
+ :body => post_body,
2593
+ :auth_names => auth_names,
2594
+ :return_type => return_type
2595
+ )
2596
+
2597
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2598
+ if @api_client.config.debugging
2599
+ @api_client.config.logger.debug "API called: UserApi#user_reset_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2600
+ end
2601
+ return data, status_code, headers
2602
+ end
2603
+
2604
+ # 重置手机号
2605
+ # 通过手机号验证码重置手机号
2606
+ # @param app_key [String]
2607
+ # @param [Hash] opts the optional parameters
2608
+ # @option opts [AppUserResetPhoneRequest] :app_user_reset_phone_request 重置手机号的请求参数
2609
+ # @return [BooleanApiResponse]
2610
+ def user_reset_phone(app_key, opts = {})
2611
+ data, _status_code, _headers = user_reset_phone_with_http_info(app_key, opts)
2612
+ data
2613
+ end
2614
+
2615
+ # 重置手机号
2616
+ # 通过手机号验证码重置手机号
2617
+ # @param app_key [String]
2618
+ # @param [Hash] opts the optional parameters
2619
+ # @option opts [AppUserResetPhoneRequest] :app_user_reset_phone_request 重置手机号的请求参数
2620
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
2621
+ def user_reset_phone_with_http_info(app_key, opts = {})
2622
+ if @api_client.config.debugging
2623
+ @api_client.config.logger.debug 'Calling API: UserApi.user_reset_phone ...'
2624
+ end
2625
+ # verify the required parameter 'app_key' is set
2626
+ if @api_client.config.client_side_validation && app_key.nil?
2627
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_reset_phone"
2628
+ end
2629
+ # resource path
2630
+ local_var_path = '/User/{appKey}/ResetPhone'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2631
+
2632
+ # query parameters
2633
+ query_params = opts[:query_params] || {}
2634
+
2635
+ # header parameters
2636
+ header_params = opts[:header_params] || {}
2637
+ # HTTP header 'Accept' (if needed)
2638
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2639
+ # HTTP header 'Content-Type'
2640
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2641
+ if !content_type.nil?
2642
+ header_params['Content-Type'] = content_type
2643
+ end
2644
+
2645
+ # form parameters
2646
+ form_params = opts[:form_params] || {}
2647
+
2648
+ # http body (model)
2649
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'app_user_reset_phone_request'])
2650
+
2651
+ # return_type
2652
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
2653
+
2654
+ # auth_names
2655
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2656
+
2657
+ new_options = opts.merge(
2658
+ :operation => :"UserApi.user_reset_phone",
2659
+ :header_params => header_params,
2660
+ :query_params => query_params,
2661
+ :form_params => form_params,
2662
+ :body => post_body,
2663
+ :auth_names => auth_names,
2664
+ :return_type => return_type
2665
+ )
2666
+
2667
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2668
+ if @api_client.config.debugging
2669
+ @api_client.config.logger.debug "API called: UserApi#user_reset_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2670
+ end
2671
+ return data, status_code, headers
2672
+ end
2673
+
2385
2674
  # 重置密码
2386
2675
  # 通过手机号或邮箱重置密码
2387
2676
  # @param app_key [String]