zsgf_client 1.0.24 → 2.0.0

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 (588) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AccessTokenApi.md +15 -15
  3. data/docs/AccessTokenPutRequest.md +2 -2
  4. data/docs/AlipayApi.md +25 -25
  5. data/docs/AppApi.md +1 -655
  6. data/docs/AppUserResetEmailRequest.md +20 -0
  7. data/docs/AppUserResetPhoneRequest.md +20 -0
  8. data/docs/AppUserResetPwdRequest.md +4 -8
  9. data/docs/CommonFriendModel.md +3 -3
  10. data/docs/DingTalkApi.md +1 -1
  11. data/docs/EmailSignInRequest.md +3 -3
  12. data/docs/EmailSignUpRequest.md +5 -5
  13. data/docs/ExternalAccountApi.md +373 -0
  14. data/docs/{OAuthAccountBindRequest.md → ExternalAccountBindRequest.md} +2 -2
  15. data/docs/{OAuthAccountPutBindRequest.md → ExternalAccountPutRequest.md} +2 -2
  16. data/docs/ExternalAccountSignInRequest.md +22 -0
  17. data/docs/FileApi.md +19 -19
  18. data/docs/FollowerModel.md +12 -12
  19. data/docs/FollowerPutModel.md +6 -6
  20. data/docs/GeoLocation.md +62 -0
  21. data/docs/GeoLocationModel.md +4 -4
  22. data/docs/GeoLocationResponseModel.md +4 -4
  23. data/docs/GetUserProfileResult.md +24 -0
  24. data/docs/{CurrencyExchangeRateApiResponse.md → GetUserProfileResultApiResponse.md} +3 -3
  25. data/docs/MySqlGeometry.md +26 -0
  26. data/docs/OAuthApi.md +17 -17
  27. data/docs/OrderApi.md +1 -1
  28. data/docs/PhoneSignInRequest.md +3 -3
  29. data/docs/PhoneSignUpRequest.md +7 -7
  30. data/docs/QRCodePreSignInRequest.md +3 -3
  31. data/docs/QRCodeScanRequest.md +1 -1
  32. data/docs/QRCodeSignInRequest.md +1 -1
  33. data/docs/QRCodeSignUpRequest.md +8 -8
  34. data/docs/RecommendFriend.md +21 -11
  35. data/docs/SendEmailCodeRequest.md +2 -2
  36. data/docs/SendSMSCodeRequest.md +2 -2
  37. data/docs/SignInRequest.md +3 -3
  38. data/docs/SignUpRequest.md +8 -8
  39. data/docs/StorageApi.md +69 -819
  40. data/docs/TapPayInfo.md +5 -1
  41. data/docs/UnionIDSignInRequest.md +3 -3
  42. data/docs/UnionIDSignUpRequest.md +10 -10
  43. data/docs/UpdateProfileRequest.md +27 -15
  44. data/docs/UserApi.md +145 -2195
  45. data/docs/UserCurrencyApi.md +1 -1
  46. data/docs/UserFriendsApi.md +795 -0
  47. data/docs/UserFriendsNearByResult.md +3 -3
  48. data/docs/UserLocationApi.md +387 -0
  49. data/docs/UserProfileResult.md +2 -28
  50. data/docs/WechatApi.md +425 -55
  51. data/lib/zsgf_client/api/access_token_api.rb +15 -15
  52. data/lib/zsgf_client/api/alipay_api.rb +13 -13
  53. data/lib/zsgf_client/api/app_api.rb +1 -588
  54. data/lib/zsgf_client/api/ding_talk_api.rb +1 -1
  55. data/lib/zsgf_client/api/{authorize_policy_api.rb → external_account_api.rb} +108 -113
  56. data/lib/zsgf_client/api/file_api.rb +14 -14
  57. data/lib/zsgf_client/api/o_auth_api.rb +9 -9
  58. data/lib/zsgf_client/api/order_api.rb +1 -1
  59. data/lib/zsgf_client/api/storage_api.rb +113 -885
  60. data/lib/zsgf_client/api/user_api.rb +153 -2126
  61. data/lib/zsgf_client/api/user_currency_api.rb +1 -1
  62. data/lib/zsgf_client/api/user_friends_api.rb +787 -0
  63. data/lib/zsgf_client/api/{user_setting_api.rb → user_location_api.rb} +106 -94
  64. data/lib/zsgf_client/api/wechat_api.rb +391 -41
  65. data/lib/zsgf_client/api_client.rb +1 -1
  66. data/lib/zsgf_client/api_error.rb +1 -1
  67. data/lib/zsgf_client/configuration.rb +4 -4
  68. data/lib/zsgf_client/models/access_token_list_result.rb +1 -1
  69. data/lib/zsgf_client/models/access_token_list_result_api_response.rb +1 -1
  70. data/lib/zsgf_client/models/access_token_post_request.rb +1 -1
  71. data/lib/zsgf_client/models/access_token_put_request.rb +4 -28
  72. data/lib/zsgf_client/models/alipay_create_order_page_pay_request.rb +1 -1
  73. data/lib/zsgf_client/models/alipay_create_order_request.rb +1 -1
  74. data/lib/zsgf_client/models/alipay_create_order_wap_pay_request.rb +1 -1
  75. data/lib/zsgf_client/models/alipay_trade_query_response.rb +1 -1
  76. data/lib/zsgf_client/models/alipay_trade_query_response_api_response.rb +1 -1
  77. data/lib/zsgf_client/models/alipay_trade_refund_response.rb +1 -1
  78. data/lib/zsgf_client/models/alipay_trade_refund_response_api_response.rb +1 -1
  79. data/lib/zsgf_client/models/app_info_item.rb +1 -1
  80. data/lib/zsgf_client/models/app_info_result.rb +1 -1
  81. data/lib/zsgf_client/models/app_info_result_api_response.rb +1 -1
  82. data/lib/zsgf_client/models/app_property.rb +1 -1
  83. data/lib/zsgf_client/models/app_user_consent_model.rb +1 -1
  84. data/lib/zsgf_client/models/app_user_consent_model_list_api_response.rb +1 -1
  85. data/lib/zsgf_client/models/{app_list_result_api_response.rb → app_user_reset_email_request.rb} +56 -32
  86. data/lib/zsgf_client/models/{app_post_result_api_response.rb → app_user_reset_phone_request.rb} +56 -32
  87. data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +53 -71
  88. data/lib/zsgf_client/models/authorize_result.rb +1 -1
  89. data/lib/zsgf_client/models/authorize_result_api_response.rb +1 -1
  90. data/lib/zsgf_client/models/bk_agent_resp_info.rb +1 -1
  91. data/lib/zsgf_client/models/boolean_api_response.rb +1 -1
  92. data/lib/zsgf_client/models/charge_info.rb +1 -1
  93. data/lib/zsgf_client/models/common_friend_model.rb +4 -1
  94. data/lib/zsgf_client/models/contribute_detail.rb +1 -1
  95. data/lib/zsgf_client/models/create_order_request.rb +1 -1
  96. data/lib/zsgf_client/models/create_order_result.rb +1 -1
  97. data/lib/zsgf_client/models/create_order_result_api_response.rb +1 -1
  98. data/lib/zsgf_client/models/currency_consume_request.rb +1 -1
  99. data/lib/zsgf_client/models/currency_transaction.rb +1 -1
  100. data/lib/zsgf_client/models/directory_item.rb +1 -1
  101. data/lib/zsgf_client/models/email_sign_in_request.rb +39 -2
  102. data/lib/zsgf_client/models/email_sign_up_request.rb +31 -9
  103. data/lib/zsgf_client/models/enterprise_pay_info.rb +1 -1
  104. data/lib/zsgf_client/models/exchange_currency_request.rb +1 -1
  105. data/lib/zsgf_client/models/{o_auth_account_bind_request.rb → external_account_bind_request.rb} +4 -4
  106. data/lib/zsgf_client/models/{o_auth_account_put_bind_request.rb → external_account_put_request.rb} +4 -4
  107. data/lib/zsgf_client/models/{o_auth_account_sign_in_request.rb → external_account_sign_in_request.rb} +82 -5
  108. data/lib/zsgf_client/models/file_item.rb +1 -1
  109. data/lib/zsgf_client/models/file_list_result.rb +1 -1
  110. data/lib/zsgf_client/models/file_list_result_api_response.rb +1 -1
  111. data/lib/zsgf_client/models/follower_model.rb +13 -1
  112. data/lib/zsgf_client/models/follower_put_model.rb +7 -1
  113. data/lib/zsgf_client/models/fulfillment_detail.rb +1 -1
  114. data/lib/zsgf_client/models/geo_location.rb +750 -0
  115. data/lib/zsgf_client/models/geo_location_model.rb +263 -13
  116. data/lib/zsgf_client/models/geo_location_model_api_response.rb +1 -1
  117. data/lib/zsgf_client/models/geo_location_response_model.rb +263 -13
  118. data/lib/zsgf_client/models/{system_file_list_result.rb → get_user_profile_result.rb} +35 -28
  119. data/lib/zsgf_client/models/{currency_exchange_rate_api_response.rb → get_user_profile_result_api_response.rb} +5 -5
  120. data/lib/zsgf_client/models/goods_detail.rb +1 -1
  121. data/lib/zsgf_client/models/grant_request.rb +1 -1
  122. data/lib/zsgf_client/models/grant_result.rb +1 -1
  123. data/lib/zsgf_client/models/grant_result_api_response.rb +1 -1
  124. data/lib/zsgf_client/models/hb_fq_pay_info.rb +1 -1
  125. data/lib/zsgf_client/models/int64_api_response.rb +1 -1
  126. data/lib/zsgf_client/models/intact_charge_info.rb +1 -1
  127. data/lib/zsgf_client/models/{app_post_result.rb → my_sql_geometry.rb} +48 -18
  128. data/lib/zsgf_client/models/object_api_response.rb +1 -1
  129. data/lib/zsgf_client/models/object_list_api_response.rb +1 -1
  130. data/lib/zsgf_client/models/order.rb +1 -1
  131. data/lib/zsgf_client/models/order_api_response.rb +1 -1
  132. data/lib/zsgf_client/models/order_list_result.rb +1 -1
  133. data/lib/zsgf_client/models/order_list_result_api_response.rb +1 -1
  134. data/lib/zsgf_client/models/payment_info_with_id.rb +1 -1
  135. data/lib/zsgf_client/models/phone_sign_in_request.rb +50 -2
  136. data/lib/zsgf_client/models/phone_sign_up_request.rb +30 -25
  137. data/lib/zsgf_client/models/preset_pay_tool_info.rb +1 -1
  138. data/lib/zsgf_client/models/profile_result.rb +1 -1
  139. data/lib/zsgf_client/models/profile_result_api_response.rb +1 -1
  140. data/lib/zsgf_client/models/qr_code_pre_sign_in_request.rb +98 -1
  141. data/lib/zsgf_client/models/qr_code_scan_request.rb +2 -1
  142. data/lib/zsgf_client/models/qr_code_sign_in_request.rb +2 -1
  143. data/lib/zsgf_client/models/qr_code_sign_up_request.rb +39 -34
  144. data/lib/zsgf_client/models/recharge_point_request.rb +1 -1
  145. data/lib/zsgf_client/models/recommend_friend.rb +70 -5
  146. data/lib/zsgf_client/models/refund_charge_info.rb +1 -1
  147. data/lib/zsgf_client/models/refund_sub_fee.rb +1 -1
  148. data/lib/zsgf_client/models/return_page_notify_request.rb +1 -1
  149. data/lib/zsgf_client/models/send_email_code_request.rb +3 -2
  150. data/lib/zsgf_client/models/send_sms_code_request.rb +3 -3
  151. data/lib/zsgf_client/models/setup_code.rb +1 -1
  152. data/lib/zsgf_client/models/setup_code_api_response.rb +1 -1
  153. data/lib/zsgf_client/models/sign_in_request.rb +78 -12
  154. data/lib/zsgf_client/models/sign_up_request.rb +48 -36
  155. data/lib/zsgf_client/models/storage_list_result.rb +1 -1
  156. data/lib/zsgf_client/models/storage_list_result_api_response.rb +1 -1
  157. data/lib/zsgf_client/models/string_api_response.rb +1 -1
  158. data/lib/zsgf_client/models/sub_fee.rb +1 -1
  159. data/lib/zsgf_client/models/tap_pay_info.rb +26 -6
  160. data/lib/zsgf_client/models/token_model.rb +1 -1
  161. data/lib/zsgf_client/models/token_model_api_response.rb +1 -1
  162. data/lib/zsgf_client/models/trade_fund_bill.rb +1 -1
  163. data/lib/zsgf_client/models/trade_settle_detail.rb +1 -1
  164. data/lib/zsgf_client/models/trade_settle_info.rb +1 -1
  165. data/lib/zsgf_client/models/union_id_sign_in_request.rb +79 -2
  166. data/lib/zsgf_client/models/union_id_sign_up_request.rb +93 -46
  167. data/lib/zsgf_client/models/update_profile_request.rb +100 -25
  168. data/lib/zsgf_client/models/user.rb +1 -1
  169. data/lib/zsgf_client/models/user_access_token.rb +1 -1
  170. data/lib/zsgf_client/models/user_common_interests_result.rb +1 -1
  171. data/lib/zsgf_client/models/user_common_interests_result_api_response.rb +1 -1
  172. data/lib/zsgf_client/models/user_currency.rb +1 -1
  173. data/lib/zsgf_client/models/user_currency_currency_trans_result.rb +1 -1
  174. data/lib/zsgf_client/models/user_currency_currency_trans_result_api_response.rb +1 -1
  175. data/lib/zsgf_client/models/user_currency_list_api_response.rb +1 -1
  176. data/lib/zsgf_client/models/user_followers_result.rb +1 -1
  177. data/lib/zsgf_client/models/user_followers_result_api_response.rb +1 -1
  178. data/lib/zsgf_client/models/user_friends_near_by_result.rb +11 -8
  179. data/lib/zsgf_client/models/user_friends_near_by_result_api_response.rb +1 -1
  180. data/lib/zsgf_client/models/user_location_post_result.rb +1 -1
  181. data/lib/zsgf_client/models/user_location_post_result_api_response.rb +1 -1
  182. data/lib/zsgf_client/models/user_locations_result.rb +1 -1
  183. data/lib/zsgf_client/models/user_locations_result_api_response.rb +1 -1
  184. data/lib/zsgf_client/models/user_logins.rb +1 -1
  185. data/lib/zsgf_client/models/user_logins_list_api_response.rb +1 -1
  186. data/lib/zsgf_client/models/user_mutual_followers_result.rb +1 -1
  187. data/lib/zsgf_client/models/user_mutual_followers_result_api_response.rb +1 -1
  188. data/lib/zsgf_client/models/user_mutual_followings_result.rb +1 -1
  189. data/lib/zsgf_client/models/user_mutual_followings_result_api_response.rb +1 -1
  190. data/lib/zsgf_client/models/user_profile_result.rb +8 -134
  191. data/lib/zsgf_client/models/user_profile_result_api_response.rb +1 -1
  192. data/lib/zsgf_client/models/user_qr_code_scan_result.rb +1 -1
  193. data/lib/zsgf_client/models/user_qr_code_scan_result_api_response.rb +1 -1
  194. data/lib/zsgf_client/models/voucher_detail.rb +1 -1
  195. data/lib/zsgf_client/models/wechat_js_config_result.rb +1 -1
  196. data/lib/zsgf_client/models/wechat_js_config_result_api_response.rb +1 -1
  197. data/lib/zsgf_client/version.rb +2 -2
  198. data/lib/zsgf_client.rb +13 -90
  199. data/spec/api/access_token_api_spec.rb +8 -8
  200. data/spec/api/alipay_api_spec.rb +7 -7
  201. data/spec/api/app_api_spec.rb +1 -115
  202. data/spec/api/ding_talk_api_spec.rb +1 -1
  203. data/spec/api/{user_setting_api_spec.rb → external_account_api_spec.rb} +35 -38
  204. data/spec/api/file_api_spec.rb +7 -7
  205. data/spec/api/o_auth_api_spec.rb +5 -5
  206. data/spec/api/order_api_spec.rb +1 -1
  207. data/spec/api/storage_api_spec.rb +2 -141
  208. data/spec/api/user_api_spec.rb +20 -406
  209. data/spec/api/user_currency_api_spec.rb +1 -1
  210. data/spec/api/user_friends_api_spec.rb +192 -0
  211. data/spec/api/user_location_api_spec.rb +107 -0
  212. data/spec/api/wechat_api_spec.rb +82 -17
  213. data/spec/models/access_token_list_result_api_response_spec.rb +1 -1
  214. data/spec/models/access_token_list_result_spec.rb +1 -1
  215. data/spec/models/access_token_post_request_spec.rb +1 -1
  216. data/spec/models/access_token_put_request_spec.rb +1 -1
  217. data/spec/models/alipay_create_order_page_pay_request_spec.rb +1 -1
  218. data/spec/models/alipay_create_order_request_spec.rb +1 -1
  219. data/spec/models/alipay_create_order_wap_pay_request_spec.rb +1 -1
  220. data/spec/models/alipay_trade_query_response_api_response_spec.rb +1 -1
  221. data/spec/models/alipay_trade_query_response_spec.rb +1 -1
  222. data/spec/models/alipay_trade_refund_response_api_response_spec.rb +1 -1
  223. data/spec/models/alipay_trade_refund_response_spec.rb +1 -1
  224. data/spec/models/app_info_item_spec.rb +1 -1
  225. data/spec/models/app_info_result_api_response_spec.rb +1 -1
  226. data/spec/models/app_info_result_spec.rb +1 -1
  227. data/spec/models/app_property_spec.rb +1 -1
  228. data/spec/models/app_user_consent_model_list_api_response_spec.rb +1 -1
  229. data/spec/models/app_user_consent_model_spec.rb +1 -1
  230. data/spec/models/{app_post_result_spec.rb → app_user_reset_email_request_spec.rb} +9 -9
  231. data/spec/models/{post_index_request_spec.rb → app_user_reset_phone_request_spec.rb} +9 -9
  232. data/spec/models/app_user_reset_pwd_request_spec.rb +3 -15
  233. data/spec/models/authorize_result_api_response_spec.rb +1 -1
  234. data/spec/models/authorize_result_spec.rb +1 -1
  235. data/spec/models/bk_agent_resp_info_spec.rb +1 -1
  236. data/spec/models/boolean_api_response_spec.rb +1 -1
  237. data/spec/models/charge_info_spec.rb +1 -1
  238. data/spec/models/common_friend_model_spec.rb +1 -1
  239. data/spec/models/contribute_detail_spec.rb +1 -1
  240. data/spec/models/create_order_request_spec.rb +1 -1
  241. data/spec/models/create_order_result_api_response_spec.rb +1 -1
  242. data/spec/models/create_order_result_spec.rb +1 -1
  243. data/spec/models/currency_consume_request_spec.rb +1 -1
  244. data/spec/models/currency_transaction_spec.rb +1 -1
  245. data/spec/models/directory_item_spec.rb +1 -1
  246. data/spec/models/email_sign_in_request_spec.rb +1 -1
  247. data/spec/models/email_sign_up_request_spec.rb +1 -1
  248. data/spec/models/enterprise_pay_info_spec.rb +1 -1
  249. data/spec/models/exchange_currency_request_spec.rb +1 -1
  250. data/spec/models/{o_auth_account_bind_request_spec.rb → external_account_bind_request_spec.rb} +7 -7
  251. data/spec/models/{o_auth_account_put_bind_request_spec.rb → external_account_put_request_spec.rb} +7 -7
  252. data/spec/models/{o_auth_account_sign_in_request_spec.rb → external_account_sign_in_request_spec.rb} +7 -7
  253. data/spec/models/file_item_spec.rb +1 -1
  254. data/spec/models/file_list_result_api_response_spec.rb +1 -1
  255. data/spec/models/file_list_result_spec.rb +1 -1
  256. data/spec/models/follower_model_spec.rb +1 -1
  257. data/spec/models/follower_put_model_spec.rb +1 -1
  258. data/spec/models/fulfillment_detail_spec.rb +1 -1
  259. data/spec/models/geo_location_model_api_response_spec.rb +1 -1
  260. data/spec/models/geo_location_model_spec.rb +4 -4
  261. data/spec/models/geo_location_response_model_spec.rb +4 -4
  262. data/spec/models/{app_spec.rb → geo_location_spec.rb} +58 -22
  263. data/spec/models/{system_file_list_result_api_response_spec.rb → get_user_profile_result_api_response_spec.rb} +7 -7
  264. data/spec/models/{system_directory_item_spec.rb → get_user_profile_result_spec.rb} +11 -11
  265. data/spec/models/goods_detail_spec.rb +1 -1
  266. data/spec/models/grant_request_spec.rb +1 -1
  267. data/spec/models/grant_result_api_response_spec.rb +1 -1
  268. data/spec/models/grant_result_spec.rb +1 -1
  269. data/spec/models/hb_fq_pay_info_spec.rb +1 -1
  270. data/spec/models/int64_api_response_spec.rb +1 -1
  271. data/spec/models/intact_charge_info_spec.rb +1 -1
  272. data/spec/models/{authorize_policy_spec.rb → my_sql_geometry_spec.rb} +12 -18
  273. data/spec/models/object_api_response_spec.rb +1 -1
  274. data/spec/models/object_list_api_response_spec.rb +1 -1
  275. data/spec/models/order_api_response_spec.rb +1 -1
  276. data/spec/models/order_list_result_api_response_spec.rb +1 -1
  277. data/spec/models/order_list_result_spec.rb +1 -1
  278. data/spec/models/order_spec.rb +1 -1
  279. data/spec/models/payment_info_with_id_spec.rb +1 -1
  280. data/spec/models/phone_sign_in_request_spec.rb +1 -1
  281. data/spec/models/phone_sign_up_request_spec.rb +1 -1
  282. data/spec/models/preset_pay_tool_info_spec.rb +1 -1
  283. data/spec/models/profile_result_api_response_spec.rb +1 -1
  284. data/spec/models/profile_result_spec.rb +1 -1
  285. data/spec/models/qr_code_pre_sign_in_request_spec.rb +1 -1
  286. data/spec/models/qr_code_scan_request_spec.rb +1 -1
  287. data/spec/models/qr_code_sign_in_request_spec.rb +1 -1
  288. data/spec/models/qr_code_sign_up_request_spec.rb +1 -1
  289. data/spec/models/recharge_point_request_spec.rb +1 -1
  290. data/spec/models/recommend_friend_spec.rb +31 -1
  291. data/spec/models/refund_charge_info_spec.rb +1 -1
  292. data/spec/models/refund_sub_fee_spec.rb +1 -1
  293. data/spec/models/return_page_notify_request_spec.rb +1 -1
  294. data/spec/models/send_email_code_request_spec.rb +1 -1
  295. data/spec/models/send_sms_code_request_spec.rb +1 -1
  296. data/spec/models/setup_code_api_response_spec.rb +1 -1
  297. data/spec/models/setup_code_spec.rb +1 -1
  298. data/spec/models/sign_in_request_spec.rb +1 -1
  299. data/spec/models/sign_up_request_spec.rb +1 -1
  300. data/spec/models/storage_list_result_api_response_spec.rb +1 -1
  301. data/spec/models/storage_list_result_spec.rb +1 -1
  302. data/spec/models/string_api_response_spec.rb +1 -1
  303. data/spec/models/sub_fee_spec.rb +1 -1
  304. data/spec/models/tap_pay_info_spec.rb +13 -1
  305. data/spec/models/token_model_api_response_spec.rb +1 -1
  306. data/spec/models/token_model_spec.rb +1 -1
  307. data/spec/models/trade_fund_bill_spec.rb +1 -1
  308. data/spec/models/trade_settle_detail_spec.rb +1 -1
  309. data/spec/models/trade_settle_info_spec.rb +1 -1
  310. data/spec/models/union_id_sign_in_request_spec.rb +1 -1
  311. data/spec/models/union_id_sign_up_request_spec.rb +1 -1
  312. data/spec/models/update_profile_request_spec.rb +37 -1
  313. data/spec/models/user_access_token_spec.rb +1 -1
  314. data/spec/models/user_common_interests_result_api_response_spec.rb +1 -1
  315. data/spec/models/user_common_interests_result_spec.rb +1 -1
  316. data/spec/models/user_currency_currency_trans_result_api_response_spec.rb +1 -1
  317. data/spec/models/user_currency_currency_trans_result_spec.rb +1 -1
  318. data/spec/models/user_currency_list_api_response_spec.rb +1 -1
  319. data/spec/models/user_currency_spec.rb +1 -1
  320. data/spec/models/user_followers_result_api_response_spec.rb +1 -1
  321. data/spec/models/user_followers_result_spec.rb +1 -1
  322. data/spec/models/user_friends_near_by_result_api_response_spec.rb +1 -1
  323. data/spec/models/user_friends_near_by_result_spec.rb +2 -2
  324. data/spec/models/user_location_post_result_api_response_spec.rb +1 -1
  325. data/spec/models/user_location_post_result_spec.rb +1 -1
  326. data/spec/models/user_locations_result_api_response_spec.rb +1 -1
  327. data/spec/models/user_locations_result_spec.rb +1 -1
  328. data/spec/models/user_logins_list_api_response_spec.rb +1 -1
  329. data/spec/models/user_logins_spec.rb +1 -1
  330. data/spec/models/user_mutual_followers_result_api_response_spec.rb +1 -1
  331. data/spec/models/user_mutual_followers_result_spec.rb +1 -1
  332. data/spec/models/user_mutual_followings_result_api_response_spec.rb +1 -1
  333. data/spec/models/user_mutual_followings_result_spec.rb +1 -1
  334. data/spec/models/user_profile_result_api_response_spec.rb +1 -1
  335. data/spec/models/user_profile_result_spec.rb +2 -80
  336. data/spec/models/user_qr_code_scan_result_api_response_spec.rb +1 -1
  337. data/spec/models/user_qr_code_scan_result_spec.rb +1 -1
  338. data/spec/models/user_spec.rb +1 -1
  339. data/spec/models/voucher_detail_spec.rb +1 -1
  340. data/spec/models/wechat_js_config_result_api_response_spec.rb +1 -1
  341. data/spec/models/wechat_js_config_result_spec.rb +1 -1
  342. data/spec/spec_helper.rb +1 -1
  343. data/zsgf_client.gemspec +1 -1
  344. metadata +159 -467
  345. data/docs/App.md +0 -50
  346. data/docs/AppApiResponse.md +0 -22
  347. data/docs/AppCheckVersionResult.md +0 -20
  348. data/docs/AppCheckVersionResultApiResponse.md +0 -22
  349. data/docs/AppListResult.md +0 -20
  350. data/docs/AppListResultApiResponse.md +0 -22
  351. data/docs/AppPostResult.md +0 -20
  352. data/docs/AppPostResultApiResponse.md +0 -22
  353. data/docs/AppSetting.md +0 -36
  354. data/docs/AppSettingApi.md +0 -1495
  355. data/docs/AppSettingApiResponse.md +0 -22
  356. data/docs/AppSettingGroupPostResult.md +0 -18
  357. data/docs/AppSettingGroupPostResultApiResponse.md +0 -22
  358. data/docs/AppSettingItemPostResult.md +0 -18
  359. data/docs/AppSettingItemPostResultApiResponse.md +0 -22
  360. data/docs/AppSettingListApiResponse.md +0 -22
  361. data/docs/AppSettingProviderPostResult.md +0 -18
  362. data/docs/AppSettingProviderPostResultApiResponse.md +0 -22
  363. data/docs/AppSettingSettingPostResult.md +0 -18
  364. data/docs/AppSettingSettingPostResultApiResponse.md +0 -22
  365. data/docs/AppUserListResponse.md +0 -40
  366. data/docs/AuthorizePolicy.md +0 -28
  367. data/docs/AuthorizePolicyApi.md +0 -377
  368. data/docs/AuthorizePolicyApiResponse.md +0 -22
  369. data/docs/AuthorizePolicyListApiResponse.md +0 -22
  370. data/docs/CreatePostResult.md +0 -18
  371. data/docs/CreatePostResultApiResponse.md +0 -22
  372. data/docs/Currency.md +0 -48
  373. data/docs/CurrencyApi.md +0 -677
  374. data/docs/CurrencyApiResponse.md +0 -22
  375. data/docs/CurrencyExchangeRate.md +0 -30
  376. data/docs/CurrencyListApiResponse.md +0 -22
  377. data/docs/CurrencyTransactionListApiResponse.md +0 -22
  378. data/docs/ExchangeRatePutRequest.md +0 -22
  379. data/docs/ExecuteFunctionRequest.md +0 -18
  380. data/docs/ListResponseItem.md +0 -36
  381. data/docs/ListResponseItemListApiResponse.md +0 -22
  382. data/docs/OAuthAccountSignInRequest.md +0 -22
  383. data/docs/PostIndexRequest.md +0 -20
  384. data/docs/PostResult.md +0 -18
  385. data/docs/PostResultApiResponse.md +0 -22
  386. data/docs/Project.md +0 -34
  387. data/docs/ProjectApi.md +0 -367
  388. data/docs/ProjectApiResponse.md +0 -22
  389. data/docs/ProjectListResult.md +0 -20
  390. data/docs/ProjectListResultApiResponse.md +0 -22
  391. data/docs/ServiceGroup.md +0 -36
  392. data/docs/ServiceGroupApiResponse.md +0 -22
  393. data/docs/ServiceGroupListApiResponse.md +0 -22
  394. data/docs/ServiceItem.md +0 -48
  395. data/docs/ServiceItemApiResponse.md +0 -22
  396. data/docs/ServiceItemListApiResponse.md +0 -22
  397. data/docs/ServiceProvider.md +0 -38
  398. data/docs/ServiceProviderApiResponse.md +0 -22
  399. data/docs/ServiceProviderListApiResponse.md +0 -22
  400. data/docs/ServiceSettingApi.md +0 -1459
  401. data/docs/ServiceSettingGroupPostResult.md +0 -18
  402. data/docs/ServiceSettingGroupPostResultApiResponse.md +0 -22
  403. data/docs/ServiceSettingItemPostResult.md +0 -18
  404. data/docs/ServiceSettingItemPostResultApiResponse.md +0 -22
  405. data/docs/ServiceSettingProviderPostResult.md +0 -18
  406. data/docs/ServiceSettingProviderPostResultApiResponse.md +0 -22
  407. data/docs/ServiceSettingSettingPostResult.md +0 -18
  408. data/docs/ServiceSettingSettingPostResultApiResponse.md +0 -22
  409. data/docs/Settings.md +0 -40
  410. data/docs/SettingsApiResponse.md +0 -22
  411. data/docs/SettingsListApiResponse.md +0 -22
  412. data/docs/StringListApiResponse.md +0 -22
  413. data/docs/SystemDirectoryItem.md +0 -24
  414. data/docs/SystemFileApi.md +0 -371
  415. data/docs/SystemFileItem.md +0 -24
  416. data/docs/SystemFileListResult.md +0 -22
  417. data/docs/SystemFileListResultApiResponse.md +0 -22
  418. data/docs/Team.md +0 -36
  419. data/docs/TeamApi.md +0 -297
  420. data/docs/UserApiResponse.md +0 -22
  421. data/docs/UserFollowingResult.md +0 -20
  422. data/docs/UserFollowingResultApiResponse.md +0 -22
  423. data/docs/UserListResult.md +0 -20
  424. data/docs/UserListResultApiResponse.md +0 -22
  425. data/docs/UserSetting.md +0 -38
  426. data/docs/UserSettingApi.md +0 -379
  427. data/docs/UserSettingApiResponse.md +0 -22
  428. data/docs/UserSettingListApiResponse.md +0 -22
  429. data/docs/UserSettingPostResult.md +0 -18
  430. data/docs/UserSettingPostResultApiResponse.md +0 -22
  431. data/lib/zsgf_client/api/app_setting_api.rb +0 -1446
  432. data/lib/zsgf_client/api/currency_api.rb +0 -667
  433. data/lib/zsgf_client/api/project_api.rb +0 -345
  434. data/lib/zsgf_client/api/service_setting_api.rb +0 -1340
  435. data/lib/zsgf_client/api/system_file_api.rb +0 -333
  436. data/lib/zsgf_client/api/team_api.rb +0 -282
  437. data/lib/zsgf_client/models/app.rb +0 -583
  438. data/lib/zsgf_client/models/app_api_response.rb +0 -245
  439. data/lib/zsgf_client/models/app_check_version_result.rb +0 -235
  440. data/lib/zsgf_client/models/app_check_version_result_api_response.rb +0 -245
  441. data/lib/zsgf_client/models/app_list_result.rb +0 -232
  442. data/lib/zsgf_client/models/app_setting.rb +0 -437
  443. data/lib/zsgf_client/models/app_setting_api_response.rb +0 -245
  444. data/lib/zsgf_client/models/app_setting_group_post_result.rb +0 -220
  445. data/lib/zsgf_client/models/app_setting_group_post_result_api_response.rb +0 -245
  446. data/lib/zsgf_client/models/app_setting_item_post_result.rb +0 -220
  447. data/lib/zsgf_client/models/app_setting_item_post_result_api_response.rb +0 -245
  448. data/lib/zsgf_client/models/app_setting_list_api_response.rb +0 -249
  449. data/lib/zsgf_client/models/app_setting_provider_post_result.rb +0 -220
  450. data/lib/zsgf_client/models/app_setting_provider_post_result_api_response.rb +0 -245
  451. data/lib/zsgf_client/models/app_setting_setting_post_result.rb +0 -220
  452. data/lib/zsgf_client/models/app_setting_setting_post_result_api_response.rb +0 -245
  453. data/lib/zsgf_client/models/app_user_list_response.rb +0 -327
  454. data/lib/zsgf_client/models/authorize_policy.rb +0 -290
  455. data/lib/zsgf_client/models/authorize_policy_api_response.rb +0 -245
  456. data/lib/zsgf_client/models/authorize_policy_list_api_response.rb +0 -249
  457. data/lib/zsgf_client/models/create_post_result.rb +0 -220
  458. data/lib/zsgf_client/models/create_post_result_api_response.rb +0 -245
  459. data/lib/zsgf_client/models/currency.rb +0 -484
  460. data/lib/zsgf_client/models/currency_api_response.rb +0 -245
  461. data/lib/zsgf_client/models/currency_exchange_rate.rb +0 -330
  462. data/lib/zsgf_client/models/currency_list_api_response.rb +0 -249
  463. data/lib/zsgf_client/models/currency_transaction_list_api_response.rb +0 -249
  464. data/lib/zsgf_client/models/exchange_rate_put_request.rb +0 -240
  465. data/lib/zsgf_client/models/execute_function_request.rb +0 -222
  466. data/lib/zsgf_client/models/list_response_item.rb +0 -308
  467. data/lib/zsgf_client/models/list_response_item_list_api_response.rb +0 -249
  468. data/lib/zsgf_client/models/post_index_request.rb +0 -251
  469. data/lib/zsgf_client/models/post_result.rb +0 -220
  470. data/lib/zsgf_client/models/post_result_api_response.rb +0 -245
  471. data/lib/zsgf_client/models/project.rb +0 -353
  472. data/lib/zsgf_client/models/project_api_response.rb +0 -245
  473. data/lib/zsgf_client/models/project_list_result.rb +0 -232
  474. data/lib/zsgf_client/models/project_list_result_api_response.rb +0 -245
  475. data/lib/zsgf_client/models/service_group.rb +0 -361
  476. data/lib/zsgf_client/models/service_group_api_response.rb +0 -245
  477. data/lib/zsgf_client/models/service_group_list_api_response.rb +0 -249
  478. data/lib/zsgf_client/models/service_item.rb +0 -502
  479. data/lib/zsgf_client/models/service_item_api_response.rb +0 -245
  480. data/lib/zsgf_client/models/service_item_list_api_response.rb +0 -249
  481. data/lib/zsgf_client/models/service_provider.rb +0 -403
  482. data/lib/zsgf_client/models/service_provider_api_response.rb +0 -245
  483. data/lib/zsgf_client/models/service_provider_list_api_response.rb +0 -249
  484. data/lib/zsgf_client/models/service_setting_group_post_result.rb +0 -220
  485. data/lib/zsgf_client/models/service_setting_group_post_result_api_response.rb +0 -245
  486. data/lib/zsgf_client/models/service_setting_item_post_result.rb +0 -220
  487. data/lib/zsgf_client/models/service_setting_item_post_result_api_response.rb +0 -245
  488. data/lib/zsgf_client/models/service_setting_provider_post_result.rb +0 -220
  489. data/lib/zsgf_client/models/service_setting_provider_post_result_api_response.rb +0 -245
  490. data/lib/zsgf_client/models/service_setting_setting_post_result.rb +0 -220
  491. data/lib/zsgf_client/models/service_setting_setting_post_result_api_response.rb +0 -245
  492. data/lib/zsgf_client/models/settings.rb +0 -445
  493. data/lib/zsgf_client/models/settings_api_response.rb +0 -245
  494. data/lib/zsgf_client/models/settings_list_api_response.rb +0 -249
  495. data/lib/zsgf_client/models/string_list_api_response.rb +0 -249
  496. data/lib/zsgf_client/models/system_directory_item.rb +0 -249
  497. data/lib/zsgf_client/models/system_file_item.rb +0 -249
  498. data/lib/zsgf_client/models/system_file_list_result_api_response.rb +0 -245
  499. data/lib/zsgf_client/models/team.rb +0 -376
  500. data/lib/zsgf_client/models/user_api_response.rb +0 -245
  501. data/lib/zsgf_client/models/user_following_result.rb +0 -232
  502. data/lib/zsgf_client/models/user_following_result_api_response.rb +0 -245
  503. data/lib/zsgf_client/models/user_list_result.rb +0 -232
  504. data/lib/zsgf_client/models/user_list_result_api_response.rb +0 -245
  505. data/lib/zsgf_client/models/user_setting.rb +0 -464
  506. data/lib/zsgf_client/models/user_setting_api_response.rb +0 -245
  507. data/lib/zsgf_client/models/user_setting_list_api_response.rb +0 -249
  508. data/lib/zsgf_client/models/user_setting_post_result.rb +0 -220
  509. data/lib/zsgf_client/models/user_setting_post_result_api_response.rb +0 -245
  510. data/spec/api/app_setting_api_spec.rb +0 -307
  511. data/spec/api/authorize_policy_api_spec.rb +0 -102
  512. data/spec/api/currency_api_spec.rb +0 -159
  513. data/spec/api/project_api_spec.rb +0 -97
  514. data/spec/api/service_setting_api_spec.rb +0 -289
  515. data/spec/api/system_file_api_spec.rb +0 -97
  516. data/spec/api/team_api_spec.rb +0 -85
  517. data/spec/models/app_api_response_spec.rb +0 -48
  518. data/spec/models/app_check_version_result_api_response_spec.rb +0 -48
  519. data/spec/models/app_check_version_result_spec.rb +0 -42
  520. data/spec/models/app_list_result_api_response_spec.rb +0 -48
  521. data/spec/models/app_list_result_spec.rb +0 -42
  522. data/spec/models/app_post_result_api_response_spec.rb +0 -48
  523. data/spec/models/app_setting_api_response_spec.rb +0 -48
  524. data/spec/models/app_setting_group_post_result_api_response_spec.rb +0 -48
  525. data/spec/models/app_setting_group_post_result_spec.rb +0 -36
  526. data/spec/models/app_setting_item_post_result_api_response_spec.rb +0 -48
  527. data/spec/models/app_setting_item_post_result_spec.rb +0 -36
  528. data/spec/models/app_setting_list_api_response_spec.rb +0 -48
  529. data/spec/models/app_setting_provider_post_result_api_response_spec.rb +0 -48
  530. data/spec/models/app_setting_provider_post_result_spec.rb +0 -36
  531. data/spec/models/app_setting_setting_post_result_api_response_spec.rb +0 -48
  532. data/spec/models/app_setting_setting_post_result_spec.rb +0 -36
  533. data/spec/models/app_setting_spec.rb +0 -90
  534. data/spec/models/app_user_list_response_spec.rb +0 -102
  535. data/spec/models/authorize_policy_api_response_spec.rb +0 -48
  536. data/spec/models/authorize_policy_list_api_response_spec.rb +0 -48
  537. data/spec/models/create_post_result_api_response_spec.rb +0 -48
  538. data/spec/models/create_post_result_spec.rb +0 -36
  539. data/spec/models/currency_api_response_spec.rb +0 -48
  540. data/spec/models/currency_exchange_rate_api_response_spec.rb +0 -48
  541. data/spec/models/currency_exchange_rate_spec.rb +0 -72
  542. data/spec/models/currency_list_api_response_spec.rb +0 -48
  543. data/spec/models/currency_spec.rb +0 -126
  544. data/spec/models/currency_transaction_list_api_response_spec.rb +0 -48
  545. data/spec/models/exchange_rate_put_request_spec.rb +0 -48
  546. data/spec/models/execute_function_request_spec.rb +0 -36
  547. data/spec/models/list_response_item_list_api_response_spec.rb +0 -48
  548. data/spec/models/list_response_item_spec.rb +0 -90
  549. data/spec/models/post_result_api_response_spec.rb +0 -48
  550. data/spec/models/post_result_spec.rb +0 -36
  551. data/spec/models/project_api_response_spec.rb +0 -48
  552. data/spec/models/project_list_result_api_response_spec.rb +0 -48
  553. data/spec/models/project_list_result_spec.rb +0 -42
  554. data/spec/models/project_spec.rb +0 -84
  555. data/spec/models/service_group_api_response_spec.rb +0 -48
  556. data/spec/models/service_group_list_api_response_spec.rb +0 -48
  557. data/spec/models/service_group_spec.rb +0 -90
  558. data/spec/models/service_item_api_response_spec.rb +0 -48
  559. data/spec/models/service_item_list_api_response_spec.rb +0 -48
  560. data/spec/models/service_item_spec.rb +0 -126
  561. data/spec/models/service_provider_api_response_spec.rb +0 -48
  562. data/spec/models/service_provider_list_api_response_spec.rb +0 -48
  563. data/spec/models/service_provider_spec.rb +0 -96
  564. data/spec/models/service_setting_group_post_result_api_response_spec.rb +0 -48
  565. data/spec/models/service_setting_group_post_result_spec.rb +0 -36
  566. data/spec/models/service_setting_item_post_result_api_response_spec.rb +0 -48
  567. data/spec/models/service_setting_item_post_result_spec.rb +0 -36
  568. data/spec/models/service_setting_provider_post_result_api_response_spec.rb +0 -48
  569. data/spec/models/service_setting_provider_post_result_spec.rb +0 -36
  570. data/spec/models/service_setting_setting_post_result_api_response_spec.rb +0 -48
  571. data/spec/models/service_setting_setting_post_result_spec.rb +0 -36
  572. data/spec/models/settings_api_response_spec.rb +0 -48
  573. data/spec/models/settings_list_api_response_spec.rb +0 -48
  574. data/spec/models/settings_spec.rb +0 -102
  575. data/spec/models/string_list_api_response_spec.rb +0 -48
  576. data/spec/models/system_file_item_spec.rb +0 -54
  577. data/spec/models/system_file_list_result_spec.rb +0 -48
  578. data/spec/models/team_spec.rb +0 -90
  579. data/spec/models/user_api_response_spec.rb +0 -48
  580. data/spec/models/user_following_result_api_response_spec.rb +0 -48
  581. data/spec/models/user_following_result_spec.rb +0 -42
  582. data/spec/models/user_list_result_api_response_spec.rb +0 -48
  583. data/spec/models/user_list_result_spec.rb +0 -42
  584. data/spec/models/user_setting_api_response_spec.rb +0 -48
  585. data/spec/models/user_setting_list_api_response_spec.rb +0 -48
  586. data/spec/models/user_setting_post_result_api_response_spec.rb +0 -48
  587. data/spec/models/user_setting_post_result_spec.rb +0 -36
  588. data/spec/models/user_setting_spec.rb +0 -96
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #全部 API 文档
2
+ #用户全部 API 文档
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
@@ -19,1772 +19,31 @@ module ZSGFClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # 获取用户详情
23
- # 根据用户ID获取用户详情
24
- # @param id [Integer] 用户ID
25
- # @param app_key [String]
26
- # @param [Hash] opts the optional parameters
27
- # @return [UserApiResponse]
28
- def user(id, app_key, opts = {})
29
- data, _status_code, _headers = user_with_http_info(id, app_key, opts)
30
- data
31
- end
32
-
33
- # 获取用户详情
34
- # 根据用户ID获取用户详情
35
- # @param id [Integer] 用户ID
36
- # @param app_key [String]
37
- # @param [Hash] opts the optional parameters
38
- # @return [Array<(UserApiResponse, Integer, Hash)>] UserApiResponse data, response status code and response headers
39
- def user_with_http_info(id, app_key, opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: UserApi.user ...'
42
- end
43
- # verify the required parameter 'id' is set
44
- if @api_client.config.client_side_validation && id.nil?
45
- fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user"
46
- end
47
- # verify the required parameter 'app_key' is set
48
- if @api_client.config.client_side_validation && app_key.nil?
49
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user"
50
- end
51
- # resource path
52
- local_var_path = '/User/{appKey}/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
53
-
54
- # query parameters
55
- query_params = opts[:query_params] || {}
56
-
57
- # header parameters
58
- header_params = opts[:header_params] || {}
59
- # HTTP header 'Accept' (if needed)
60
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
61
-
62
- # form parameters
63
- form_params = opts[:form_params] || {}
64
-
65
- # http body (model)
66
- post_body = opts[:debug_body]
67
-
68
- # return_type
69
- return_type = opts[:debug_return_type] || 'UserApiResponse'
70
-
71
- # auth_names
72
- auth_names = opts[:debug_auth_names] || ['Bearer']
73
-
74
- new_options = opts.merge(
75
- :operation => :"UserApi.user",
76
- :header_params => header_params,
77
- :query_params => query_params,
78
- :form_params => form_params,
79
- :body => post_body,
80
- :auth_names => auth_names,
81
- :return_type => return_type
82
- )
83
-
84
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
85
- if @api_client.config.debugging
86
- @api_client.config.logger.debug "API called: UserApi#user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
- end
88
- return data, status_code, headers
89
- end
90
-
91
- # 清空用户数据
92
- # 清空用户数据
93
- # @param app_key [String]
94
- # @param [Hash] opts the optional parameters
95
- # @return [BooleanApiResponse]
96
- def user_clear(app_key, opts = {})
97
- data, _status_code, _headers = user_clear_with_http_info(app_key, opts)
98
- data
99
- end
100
-
101
- # 清空用户数据
102
- # 清空用户数据
103
- # @param app_key [String]
104
- # @param [Hash] opts the optional parameters
105
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
106
- def user_clear_with_http_info(app_key, opts = {})
107
- if @api_client.config.debugging
108
- @api_client.config.logger.debug 'Calling API: UserApi.user_clear ...'
109
- end
110
- # verify the required parameter 'app_key' is set
111
- if @api_client.config.client_side_validation && app_key.nil?
112
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_clear"
113
- end
114
- # resource path
115
- local_var_path = '/User/{appKey}/Clear'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
116
-
117
- # query parameters
118
- query_params = opts[:query_params] || {}
119
-
120
- # header parameters
121
- header_params = opts[:header_params] || {}
122
- # HTTP header 'Accept' (if needed)
123
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
124
-
125
- # form parameters
126
- form_params = opts[:form_params] || {}
127
-
128
- # http body (model)
129
- post_body = opts[:debug_body]
130
-
131
- # return_type
132
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
133
-
134
- # auth_names
135
- auth_names = opts[:debug_auth_names] || ['Bearer']
136
-
137
- new_options = opts.merge(
138
- :operation => :"UserApi.user_clear",
139
- :header_params => header_params,
140
- :query_params => query_params,
141
- :form_params => form_params,
142
- :body => post_body,
143
- :auth_names => auth_names,
144
- :return_type => return_type
145
- )
146
-
147
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
148
- if @api_client.config.debugging
149
- @api_client.config.logger.debug "API called: UserApi#user_clear\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
- end
151
- return data, status_code, headers
152
- end
153
-
154
- # 有共同爱好的用户推荐
155
- # 推荐有共同爱好的用户
156
- # @param app_key [String]
157
- # @param [Hash] opts the optional parameters
158
- # @option opts [String] :tag 兴趣标签
159
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
160
- # @option opts [Integer] :take 获取的记录数 (default to 10)
161
- # @return [UserCommonInterestsResultApiResponse]
162
- def user_common_interests(app_key, opts = {})
163
- data, _status_code, _headers = user_common_interests_with_http_info(app_key, opts)
164
- data
165
- end
166
-
167
- # 有共同爱好的用户推荐
168
- # 推荐有共同爱好的用户
169
- # @param app_key [String]
170
- # @param [Hash] opts the optional parameters
171
- # @option opts [String] :tag 兴趣标签
172
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
173
- # @option opts [Integer] :take 获取的记录数 (default to 10)
174
- # @return [Array<(UserCommonInterestsResultApiResponse, Integer, Hash)>] UserCommonInterestsResultApiResponse data, response status code and response headers
175
- def user_common_interests_with_http_info(app_key, opts = {})
176
- if @api_client.config.debugging
177
- @api_client.config.logger.debug 'Calling API: UserApi.user_common_interests ...'
178
- end
179
- # verify the required parameter 'app_key' is set
180
- if @api_client.config.client_side_validation && app_key.nil?
181
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_common_interests"
182
- end
183
- # resource path
184
- local_var_path = '/User/{appKey}/Friends/CommonInterests'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
185
-
186
- # query parameters
187
- query_params = opts[:query_params] || {}
188
- query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
189
- query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
190
- query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
191
-
192
- # header parameters
193
- header_params = opts[:header_params] || {}
194
- # HTTP header 'Accept' (if needed)
195
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
196
-
197
- # form parameters
198
- form_params = opts[:form_params] || {}
199
-
200
- # http body (model)
201
- post_body = opts[:debug_body]
202
-
203
- # return_type
204
- return_type = opts[:debug_return_type] || 'UserCommonInterestsResultApiResponse'
205
-
206
- # auth_names
207
- auth_names = opts[:debug_auth_names] || ['Bearer']
208
-
209
- new_options = opts.merge(
210
- :operation => :"UserApi.user_common_interests",
211
- :header_params => header_params,
212
- :query_params => query_params,
213
- :form_params => form_params,
214
- :body => post_body,
215
- :auth_names => auth_names,
216
- :return_type => return_type
217
- )
218
-
219
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
220
- if @api_client.config.debugging
221
- @api_client.config.logger.debug "API called: UserApi#user_common_interests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
222
- end
223
- return data, status_code, headers
224
- end
225
-
226
- # 删除用户
227
- # 根据用户ID删除用户
228
- # @param id [Integer] 用户ID
229
- # @param app_key [String]
230
- # @param [Hash] opts the optional parameters
231
- # @return [BooleanApiResponse]
232
- def user_delete(id, app_key, opts = {})
233
- data, _status_code, _headers = user_delete_with_http_info(id, app_key, opts)
234
- data
235
- end
236
-
237
- # 删除用户
238
- # 根据用户ID删除用户
239
- # @param id [Integer] 用户ID
240
- # @param app_key [String]
241
- # @param [Hash] opts the optional parameters
242
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
243
- def user_delete_with_http_info(id, app_key, opts = {})
244
- if @api_client.config.debugging
245
- @api_client.config.logger.debug 'Calling API: UserApi.user_delete ...'
246
- end
247
- # verify the required parameter 'id' is set
248
- if @api_client.config.client_side_validation && id.nil?
249
- fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_delete"
250
- end
251
- # verify the required parameter 'app_key' is set
252
- if @api_client.config.client_side_validation && app_key.nil?
253
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_delete"
254
- end
255
- # resource path
256
- local_var_path = '/User/{appKey}/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
257
-
258
- # query parameters
259
- query_params = opts[:query_params] || {}
260
-
261
- # header parameters
262
- header_params = opts[:header_params] || {}
263
- # HTTP header 'Accept' (if needed)
264
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
265
-
266
- # form parameters
267
- form_params = opts[:form_params] || {}
268
-
269
- # http body (model)
270
- post_body = opts[:debug_body]
271
-
272
- # return_type
273
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
274
-
275
- # auth_names
276
- auth_names = opts[:debug_auth_names] || ['Bearer']
277
-
278
- new_options = opts.merge(
279
- :operation => :"UserApi.user_delete",
280
- :header_params => header_params,
281
- :query_params => query_params,
282
- :form_params => form_params,
283
- :body => post_body,
284
- :auth_names => auth_names,
285
- :return_type => return_type
286
- )
287
-
288
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
289
- if @api_client.config.debugging
290
- @api_client.config.logger.debug "API called: UserApi#user_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
291
- end
292
- return data, status_code, headers
293
- end
294
-
295
- # 邮箱登录
296
- # 使用邮箱进行登录
297
- # @param app_key [String]
298
- # @param [Hash] opts the optional parameters
299
- # @option opts [EmailSignInRequest] :email_sign_in_request 登录请求参数
300
- # @return [TokenModelApiResponse]
301
- def user_email_sign_in(app_key, opts = {})
302
- data, _status_code, _headers = user_email_sign_in_with_http_info(app_key, opts)
303
- data
304
- end
305
-
306
- # 邮箱登录
307
- # 使用邮箱进行登录
308
- # @param app_key [String]
309
- # @param [Hash] opts the optional parameters
310
- # @option opts [EmailSignInRequest] :email_sign_in_request 登录请求参数
311
- # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
312
- def user_email_sign_in_with_http_info(app_key, opts = {})
313
- if @api_client.config.debugging
314
- @api_client.config.logger.debug 'Calling API: UserApi.user_email_sign_in ...'
315
- end
316
- # verify the required parameter 'app_key' is set
317
- if @api_client.config.client_side_validation && app_key.nil?
318
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_email_sign_in"
319
- end
320
- # resource path
321
- local_var_path = '/User/{appKey}/EmailSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
322
-
323
- # query parameters
324
- query_params = opts[:query_params] || {}
325
-
326
- # header parameters
327
- header_params = opts[:header_params] || {}
328
- # HTTP header 'Accept' (if needed)
329
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
330
- # HTTP header 'Content-Type'
331
- content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
332
- if !content_type.nil?
333
- header_params['Content-Type'] = content_type
334
- end
335
-
336
- # form parameters
337
- form_params = opts[:form_params] || {}
338
-
339
- # http body (model)
340
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'email_sign_in_request'])
341
-
342
- # return_type
343
- return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
344
-
345
- # auth_names
346
- auth_names = opts[:debug_auth_names] || ['Bearer']
347
-
348
- new_options = opts.merge(
349
- :operation => :"UserApi.user_email_sign_in",
350
- :header_params => header_params,
351
- :query_params => query_params,
352
- :form_params => form_params,
353
- :body => post_body,
354
- :auth_names => auth_names,
355
- :return_type => return_type
356
- )
357
-
358
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
359
- if @api_client.config.debugging
360
- @api_client.config.logger.debug "API called: UserApi#user_email_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
361
- end
362
- return data, status_code, headers
363
- end
364
-
365
- # 邮箱注册
366
- # 使用邮箱进行注册
367
- # @param app_key [String]
368
- # @param [Hash] opts the optional parameters
369
- # @option opts [EmailSignUpRequest] :email_sign_up_request 注册请求参数
370
- # @return [TokenModelApiResponse]
371
- def user_email_sign_up(app_key, opts = {})
372
- data, _status_code, _headers = user_email_sign_up_with_http_info(app_key, opts)
373
- data
374
- end
375
-
376
- # 邮箱注册
377
- # 使用邮箱进行注册
378
- # @param app_key [String]
379
- # @param [Hash] opts the optional parameters
380
- # @option opts [EmailSignUpRequest] :email_sign_up_request 注册请求参数
381
- # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
382
- def user_email_sign_up_with_http_info(app_key, opts = {})
383
- if @api_client.config.debugging
384
- @api_client.config.logger.debug 'Calling API: UserApi.user_email_sign_up ...'
385
- end
386
- # verify the required parameter 'app_key' is set
387
- if @api_client.config.client_side_validation && app_key.nil?
388
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_email_sign_up"
389
- end
390
- # resource path
391
- local_var_path = '/User/{appKey}/EmailSignUp'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
392
-
393
- # query parameters
394
- query_params = opts[:query_params] || {}
395
-
396
- # header parameters
397
- header_params = opts[:header_params] || {}
398
- # HTTP header 'Accept' (if needed)
399
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
400
- # HTTP header 'Content-Type'
401
- content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
402
- if !content_type.nil?
403
- header_params['Content-Type'] = content_type
404
- end
405
-
406
- # form parameters
407
- form_params = opts[:form_params] || {}
408
-
409
- # http body (model)
410
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'email_sign_up_request'])
411
-
412
- # return_type
413
- return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
414
-
415
- # auth_names
416
- auth_names = opts[:debug_auth_names] || ['Bearer']
417
-
418
- new_options = opts.merge(
419
- :operation => :"UserApi.user_email_sign_up",
420
- :header_params => header_params,
421
- :query_params => query_params,
422
- :form_params => form_params,
423
- :body => post_body,
424
- :auth_names => auth_names,
425
- :return_type => return_type
426
- )
427
-
428
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
429
- if @api_client.config.debugging
430
- @api_client.config.logger.debug "API called: UserApi#user_email_sign_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
431
- end
432
- return data, status_code, headers
433
- end
434
-
435
- # 导出用户数据
436
- # 导出所有用户数据为Excel文件
437
- # @param app_key [String]
438
- # @param [Hash] opts the optional parameters
439
- # @return [File]
440
- def user_export(app_key, opts = {})
441
- data, _status_code, _headers = user_export_with_http_info(app_key, opts)
442
- data
443
- end
444
-
445
- # 导出用户数据
446
- # 导出所有用户数据为Excel文件
447
- # @param app_key [String]
448
- # @param [Hash] opts the optional parameters
449
- # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
450
- def user_export_with_http_info(app_key, opts = {})
451
- if @api_client.config.debugging
452
- @api_client.config.logger.debug 'Calling API: UserApi.user_export ...'
453
- end
454
- # verify the required parameter 'app_key' is set
455
- if @api_client.config.client_side_validation && app_key.nil?
456
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_export"
457
- end
458
- # resource path
459
- local_var_path = '/User/{appKey}/Export'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
460
-
461
- # query parameters
462
- query_params = opts[:query_params] || {}
463
-
464
- # header parameters
465
- header_params = opts[:header_params] || {}
466
- # HTTP header 'Accept' (if needed)
467
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']) unless header_params['Accept']
468
-
469
- # form parameters
470
- form_params = opts[:form_params] || {}
471
-
472
- # http body (model)
473
- post_body = opts[:debug_body]
474
-
475
- # return_type
476
- return_type = opts[:debug_return_type] || 'File'
477
-
478
- # auth_names
479
- auth_names = opts[:debug_auth_names] || ['Bearer']
480
-
481
- new_options = opts.merge(
482
- :operation => :"UserApi.user_export",
483
- :header_params => header_params,
484
- :query_params => query_params,
485
- :form_params => form_params,
486
- :body => post_body,
487
- :auth_names => auth_names,
488
- :return_type => return_type
489
- )
490
-
491
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
492
- if @api_client.config.debugging
493
- @api_client.config.logger.debug "API called: UserApi#user_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
494
- end
495
- return data, status_code, headers
496
- end
497
-
498
- # 关注用户
499
- # 关注指定用户
500
- # @param user_id [Integer] 要关注的用户ID
501
- # @param app_key [String]
502
- # @param [Hash] opts the optional parameters
503
- # @return [BooleanApiResponse]
504
- def user_follow_user(user_id, app_key, opts = {})
505
- data, _status_code, _headers = user_follow_user_with_http_info(user_id, app_key, opts)
506
- data
507
- end
508
-
509
- # 关注用户
510
- # 关注指定用户
511
- # @param user_id [Integer] 要关注的用户ID
512
- # @param app_key [String]
513
- # @param [Hash] opts the optional parameters
514
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
515
- def user_follow_user_with_http_info(user_id, app_key, opts = {})
516
- if @api_client.config.debugging
517
- @api_client.config.logger.debug 'Calling API: UserApi.user_follow_user ...'
518
- end
519
- # verify the required parameter 'user_id' is set
520
- if @api_client.config.client_side_validation && user_id.nil?
521
- fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.user_follow_user"
522
- end
523
- # verify the required parameter 'app_key' is set
524
- if @api_client.config.client_side_validation && app_key.nil?
525
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_follow_user"
526
- end
527
- # resource path
528
- local_var_path = '/User/{appKey}/Follower/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
529
-
530
- # query parameters
531
- query_params = opts[:query_params] || {}
532
-
533
- # header parameters
534
- header_params = opts[:header_params] || {}
535
- # HTTP header 'Accept' (if needed)
536
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
537
-
538
- # form parameters
539
- form_params = opts[:form_params] || {}
540
-
541
- # http body (model)
542
- post_body = opts[:debug_body]
543
-
544
- # return_type
545
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
546
-
547
- # auth_names
548
- auth_names = opts[:debug_auth_names] || ['Bearer']
549
-
550
- new_options = opts.merge(
551
- :operation => :"UserApi.user_follow_user",
552
- :header_params => header_params,
553
- :query_params => query_params,
554
- :form_params => form_params,
555
- :body => post_body,
556
- :auth_names => auth_names,
557
- :return_type => return_type
558
- )
559
-
560
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
561
- if @api_client.config.debugging
562
- @api_client.config.logger.debug "API called: UserApi#user_follow_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
563
- end
564
- return data, status_code, headers
565
- end
566
-
567
- # 更新粉丝
568
- # 根据粉丝ID更新粉丝信息
569
- # @param id [Integer] 粉丝ID
570
- # @param app_key [String]
571
- # @param [Hash] opts the optional parameters
572
- # @option opts [FollowerPutModel] :follower_put_model 更新粉丝的请求参数
573
- # @return [BooleanApiResponse]
574
- def user_follower_put(id, app_key, opts = {})
575
- data, _status_code, _headers = user_follower_put_with_http_info(id, app_key, opts)
576
- data
577
- end
578
-
579
- # 更新粉丝
580
- # 根据粉丝ID更新粉丝信息
581
- # @param id [Integer] 粉丝ID
582
- # @param app_key [String]
583
- # @param [Hash] opts the optional parameters
584
- # @option opts [FollowerPutModel] :follower_put_model 更新粉丝的请求参数
585
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
586
- def user_follower_put_with_http_info(id, app_key, opts = {})
587
- if @api_client.config.debugging
588
- @api_client.config.logger.debug 'Calling API: UserApi.user_follower_put ...'
589
- end
590
- # verify the required parameter 'id' is set
591
- if @api_client.config.client_side_validation && id.nil?
592
- fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_follower_put"
593
- end
594
- # verify the required parameter 'app_key' is set
595
- if @api_client.config.client_side_validation && app_key.nil?
596
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_follower_put"
597
- end
598
- # resource path
599
- local_var_path = '/User/{appKey}/Follower/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
600
-
601
- # query parameters
602
- query_params = opts[:query_params] || {}
603
-
604
- # header parameters
605
- header_params = opts[:header_params] || {}
606
- # HTTP header 'Accept' (if needed)
607
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
608
- # HTTP header 'Content-Type'
609
- content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
610
- if !content_type.nil?
611
- header_params['Content-Type'] = content_type
612
- end
613
-
614
- # form parameters
615
- form_params = opts[:form_params] || {}
616
-
617
- # http body (model)
618
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'follower_put_model'])
619
-
620
- # return_type
621
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
622
-
623
- # auth_names
624
- auth_names = opts[:debug_auth_names] || ['Bearer']
625
-
626
- new_options = opts.merge(
627
- :operation => :"UserApi.user_follower_put",
628
- :header_params => header_params,
629
- :query_params => query_params,
630
- :form_params => form_params,
631
- :body => post_body,
632
- :auth_names => auth_names,
633
- :return_type => return_type
634
- )
635
-
636
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
637
- if @api_client.config.debugging
638
- @api_client.config.logger.debug "API called: UserApi#user_follower_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
639
- end
640
- return data, status_code, headers
641
- end
642
-
643
- # 获取我的粉丝列表
644
- # 根据条件获取我的粉丝列表
645
- # @param app_key [String]
646
- # @param [Hash] opts the optional parameters
647
- # @option opts [String] :tag 标签
648
- # @option opts [String] :status 状态
649
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
650
- # @option opts [Integer] :take 获取的记录数 (default to 10)
651
- # @return [UserFollowersResultApiResponse]
652
- def user_followers(app_key, opts = {})
653
- data, _status_code, _headers = user_followers_with_http_info(app_key, opts)
654
- data
655
- end
656
-
657
- # 获取我的粉丝列表
658
- # 根据条件获取我的粉丝列表
659
- # @param app_key [String]
660
- # @param [Hash] opts the optional parameters
661
- # @option opts [String] :tag 标签
662
- # @option opts [String] :status 状态
663
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
664
- # @option opts [Integer] :take 获取的记录数 (default to 10)
665
- # @return [Array<(UserFollowersResultApiResponse, Integer, Hash)>] UserFollowersResultApiResponse data, response status code and response headers
666
- def user_followers_with_http_info(app_key, opts = {})
667
- if @api_client.config.debugging
668
- @api_client.config.logger.debug 'Calling API: UserApi.user_followers ...'
669
- end
670
- # verify the required parameter 'app_key' is set
671
- if @api_client.config.client_side_validation && app_key.nil?
672
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_followers"
673
- end
674
- # resource path
675
- local_var_path = '/User/{appKey}/Followers'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
676
-
677
- # query parameters
678
- query_params = opts[:query_params] || {}
679
- query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
680
- query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
681
- query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
682
- query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
683
-
684
- # header parameters
685
- header_params = opts[:header_params] || {}
686
- # HTTP header 'Accept' (if needed)
687
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
688
-
689
- # form parameters
690
- form_params = opts[:form_params] || {}
691
-
692
- # http body (model)
693
- post_body = opts[:debug_body]
694
-
695
- # return_type
696
- return_type = opts[:debug_return_type] || 'UserFollowersResultApiResponse'
697
-
698
- # auth_names
699
- auth_names = opts[:debug_auth_names] || ['Bearer']
700
-
701
- new_options = opts.merge(
702
- :operation => :"UserApi.user_followers",
703
- :header_params => header_params,
704
- :query_params => query_params,
705
- :form_params => form_params,
706
- :body => post_body,
707
- :auth_names => auth_names,
708
- :return_type => return_type
709
- )
710
-
711
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
712
- if @api_client.config.debugging
713
- @api_client.config.logger.debug "API called: UserApi#user_followers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
714
- end
715
- return data, status_code, headers
716
- end
717
-
718
- # 获取我的关注列表
719
- # 根据条件获取我的关注列表
720
- # @param app_key [String]
721
- # @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]
727
- def user_following(app_key, opts = {})
728
- data, _status_code, _headers = user_following_with_http_info(app_key, opts)
729
- data
730
- end
731
-
732
- # 获取我的关注列表
733
- # 根据条件获取我的关注列表
734
- # @param app_key [String]
735
- # @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
741
- def user_following_with_http_info(app_key, opts = {})
742
- if @api_client.config.debugging
743
- @api_client.config.logger.debug 'Calling API: UserApi.user_following ...'
744
- end
745
- # verify the required parameter 'app_key' is set
746
- if @api_client.config.client_side_validation && app_key.nil?
747
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_following"
748
- end
749
- # resource path
750
- local_var_path = '/User/{appKey}/Following'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
751
-
752
- # query parameters
753
- query_params = opts[:query_params] || {}
754
- query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
755
- query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
756
- query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
757
- query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
758
-
759
- # header parameters
760
- header_params = opts[:header_params] || {}
761
- # HTTP header 'Accept' (if needed)
762
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
763
-
764
- # form parameters
765
- form_params = opts[:form_params] || {}
766
-
767
- # http body (model)
768
- post_body = opts[:debug_body]
769
-
770
- # return_type
771
- return_type = opts[:debug_return_type] || 'UserFollowingResultApiResponse'
772
-
773
- # auth_names
774
- auth_names = opts[:debug_auth_names] || ['Bearer']
775
-
776
- new_options = opts.merge(
777
- :operation => :"UserApi.user_following",
778
- :header_params => header_params,
779
- :query_params => query_params,
780
- :form_params => form_params,
781
- :body => post_body,
782
- :auth_names => auth_names,
783
- :return_type => return_type
784
- )
785
-
786
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
787
- if @api_client.config.debugging
788
- @api_client.config.logger.debug "API called: UserApi#user_following\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
789
- end
790
- return data, status_code, headers
791
- end
792
-
793
- # 附近的用户推荐
794
- # 推荐附近的用户
795
- # @param x [Float] 纬度
796
- # @param y [Float] 经度
797
- # @param distance [Integer] 附近距离,单位:米
798
- # @param app_key [String]
799
- # @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)
807
- # @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)
810
- data
811
- end
812
-
813
- # 附近的用户推荐
814
- # 推荐附近的用户
815
- # @param x [Float] 纬度
816
- # @param y [Float] 经度
817
- # @param distance [Integer] 附近距离,单位:米
818
- # @param app_key [String]
819
- # @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)
827
- # @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 = {})
829
- if @api_client.config.debugging
830
- @api_client.config.logger.debug 'Calling API: UserApi.user_friends_near_by ...'
831
- 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"
839
- 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"
843
- end
844
- # verify the required parameter 'app_key' is set
845
- if @api_client.config.client_side_validation && app_key.nil?
846
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_friends_near_by"
847
- end
848
- # resource path
849
- local_var_path = '/User/{appKey}/Friends/NearBy'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
850
-
851
- # query parameters
852
- query_params = opts[:query_params] || {}
853
- query_params[:'x'] = x
854
- query_params[:'y'] = y
855
- query_params[:'distance'] = distance
856
- query_params[:'gender'] = opts[:'gender'] if !opts[:'gender'].nil?
857
- query_params[:'ageS'] = opts[:'age_s'] if !opts[:'age_s'].nil?
858
- query_params[:'ageE'] = opts[:'age_e'] if !opts[:'age_e'].nil?
859
- query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
860
- query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
861
- query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
862
- query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
863
-
864
- # header parameters
865
- header_params = opts[:header_params] || {}
866
- # HTTP header 'Accept' (if needed)
867
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
868
-
869
- # form parameters
870
- form_params = opts[:form_params] || {}
871
-
872
- # http body (model)
873
- post_body = opts[:debug_body]
874
-
875
- # return_type
876
- return_type = opts[:debug_return_type] || 'UserFriendsNearByResultApiResponse'
877
-
878
- # auth_names
879
- auth_names = opts[:debug_auth_names] || ['Bearer']
880
-
881
- new_options = opts.merge(
882
- :operation => :"UserApi.user_friends_near_by",
883
- :header_params => header_params,
884
- :query_params => query_params,
885
- :form_params => form_params,
886
- :body => post_body,
887
- :auth_names => auth_names,
888
- :return_type => return_type
889
- )
890
-
891
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
892
- if @api_client.config.debugging
893
- @api_client.config.logger.debug "API called: UserApi#user_friends_near_by\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
894
- end
895
- return data, status_code, headers
896
- end
897
-
898
- # 导入用户数据
899
- # 导入用户数据
900
- # @param app_key [String]
901
- # @param [Hash] opts the optional parameters
902
- # @option opts [Boolean] :check 是否进行检查
903
- # @option opts [File] :file 导入的文件
904
- # @return [BooleanApiResponse]
905
- def user_import(app_key, opts = {})
906
- data, _status_code, _headers = user_import_with_http_info(app_key, opts)
907
- data
908
- end
909
-
910
- # 导入用户数据
911
- # 导入用户数据
912
- # @param app_key [String]
913
- # @param [Hash] opts the optional parameters
914
- # @option opts [Boolean] :check 是否进行检查
915
- # @option opts [File] :file 导入的文件
916
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
917
- def user_import_with_http_info(app_key, opts = {})
918
- if @api_client.config.debugging
919
- @api_client.config.logger.debug 'Calling API: UserApi.user_import ...'
920
- end
921
- # verify the required parameter 'app_key' is set
922
- if @api_client.config.client_side_validation && app_key.nil?
923
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_import"
924
- end
925
- # resource path
926
- local_var_path = '/User/{appKey}/Import'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
927
-
928
- # query parameters
929
- query_params = opts[:query_params] || {}
930
- query_params[:'check'] = opts[:'check'] if !opts[:'check'].nil?
931
-
932
- # header parameters
933
- header_params = opts[:header_params] || {}
934
- # HTTP header 'Accept' (if needed)
935
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
936
- # HTTP header 'Content-Type'
937
- content_type = @api_client.select_header_content_type(['multipart/form-data'])
938
- if !content_type.nil?
939
- header_params['Content-Type'] = content_type
940
- end
941
-
942
- # form parameters
943
- form_params = opts[:form_params] || {}
944
- form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
945
-
946
- # http body (model)
947
- post_body = opts[:debug_body]
948
-
949
- # return_type
950
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
951
-
952
- # auth_names
953
- auth_names = opts[:debug_auth_names] || ['Bearer']
954
-
955
- new_options = opts.merge(
956
- :operation => :"UserApi.user_import",
957
- :header_params => header_params,
958
- :query_params => query_params,
959
- :form_params => form_params,
960
- :body => post_body,
961
- :auth_names => auth_names,
962
- :return_type => return_type
963
- )
964
-
965
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
966
- if @api_client.config.debugging
967
- @api_client.config.logger.debug "API called: UserApi#user_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
968
- end
969
- return data, status_code, headers
970
- end
971
-
972
- # 获取位置详情
973
- # 根据位置ID获取位置详情
974
- # @param id [Integer] 位置ID
975
- # @param app_key [String]
976
- # @param [Hash] opts the optional parameters
977
- # @return [GeoLocationModelApiResponse]
978
- def user_location(id, app_key, opts = {})
979
- data, _status_code, _headers = user_location_with_http_info(id, app_key, opts)
980
- data
981
- end
982
-
983
- # 获取位置详情
984
- # 根据位置ID获取位置详情
985
- # @param id [Integer] 位置ID
986
- # @param app_key [String]
987
- # @param [Hash] opts the optional parameters
988
- # @return [Array<(GeoLocationModelApiResponse, Integer, Hash)>] GeoLocationModelApiResponse data, response status code and response headers
989
- def user_location_with_http_info(id, app_key, opts = {})
990
- if @api_client.config.debugging
991
- @api_client.config.logger.debug 'Calling API: UserApi.user_location ...'
992
- end
993
- # verify the required parameter 'id' is set
994
- if @api_client.config.client_side_validation && id.nil?
995
- fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_location"
996
- end
997
- # verify the required parameter 'app_key' is set
998
- if @api_client.config.client_side_validation && app_key.nil?
999
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_location"
1000
- end
1001
- # resource path
1002
- local_var_path = '/User/{appKey}/Location/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1003
-
1004
- # query parameters
1005
- query_params = opts[:query_params] || {}
1006
-
1007
- # header parameters
1008
- header_params = opts[:header_params] || {}
1009
- # HTTP header 'Accept' (if needed)
1010
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1011
-
1012
- # form parameters
1013
- form_params = opts[:form_params] || {}
1014
-
1015
- # http body (model)
1016
- post_body = opts[:debug_body]
1017
-
1018
- # return_type
1019
- return_type = opts[:debug_return_type] || 'GeoLocationModelApiResponse'
1020
-
1021
- # auth_names
1022
- auth_names = opts[:debug_auth_names] || ['Bearer']
1023
-
1024
- new_options = opts.merge(
1025
- :operation => :"UserApi.user_location",
1026
- :header_params => header_params,
1027
- :query_params => query_params,
1028
- :form_params => form_params,
1029
- :body => post_body,
1030
- :auth_names => auth_names,
1031
- :return_type => return_type
1032
- )
1033
-
1034
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1035
- if @api_client.config.debugging
1036
- @api_client.config.logger.debug "API called: UserApi#user_location\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1037
- end
1038
- return data, status_code, headers
1039
- end
1040
-
1041
- # 删除位置
1042
- # 根据位置ID删除位置信息
1043
- # @param id [Integer] 位置ID
1044
- # @param app_key [String]
1045
- # @param [Hash] opts the optional parameters
1046
- # @return [BooleanApiResponse]
1047
- def user_location_delete(id, app_key, opts = {})
1048
- data, _status_code, _headers = user_location_delete_with_http_info(id, app_key, opts)
1049
- data
1050
- end
1051
-
1052
- # 删除位置
1053
- # 根据位置ID删除位置信息
1054
- # @param id [Integer] 位置ID
1055
- # @param app_key [String]
1056
- # @param [Hash] opts the optional parameters
1057
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
1058
- def user_location_delete_with_http_info(id, app_key, opts = {})
1059
- if @api_client.config.debugging
1060
- @api_client.config.logger.debug 'Calling API: UserApi.user_location_delete ...'
1061
- end
1062
- # verify the required parameter 'id' is set
1063
- if @api_client.config.client_side_validation && id.nil?
1064
- fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_location_delete"
1065
- end
1066
- # verify the required parameter 'app_key' is set
1067
- if @api_client.config.client_side_validation && app_key.nil?
1068
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_location_delete"
1069
- end
1070
- # resource path
1071
- local_var_path = '/User/{appKey}/Location/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1072
-
1073
- # query parameters
1074
- query_params = opts[:query_params] || {}
1075
-
1076
- # header parameters
1077
- header_params = opts[:header_params] || {}
1078
- # HTTP header 'Accept' (if needed)
1079
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1080
-
1081
- # form parameters
1082
- form_params = opts[:form_params] || {}
1083
-
1084
- # http body (model)
1085
- post_body = opts[:debug_body]
1086
-
1087
- # return_type
1088
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
1089
-
1090
- # auth_names
1091
- auth_names = opts[:debug_auth_names] || ['Bearer']
1092
-
1093
- new_options = opts.merge(
1094
- :operation => :"UserApi.user_location_delete",
1095
- :header_params => header_params,
1096
- :query_params => query_params,
1097
- :form_params => form_params,
1098
- :body => post_body,
1099
- :auth_names => auth_names,
1100
- :return_type => return_type
1101
- )
1102
-
1103
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1104
- if @api_client.config.debugging
1105
- @api_client.config.logger.debug "API called: UserApi#user_location_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1106
- end
1107
- return data, status_code, headers
1108
- end
1109
-
1110
- # 添加位置
1111
- # 添加新的位置信息
1112
- # @param app_key [String]
1113
- # @param [Hash] opts the optional parameters
1114
- # @option opts [GeoLocationModel] :geo_location_model 位置信息
1115
- # @return [UserLocationPostResultApiResponse]
1116
- def user_location_post(app_key, opts = {})
1117
- data, _status_code, _headers = user_location_post_with_http_info(app_key, opts)
1118
- data
1119
- end
1120
-
1121
- # 添加位置
1122
- # 添加新的位置信息
1123
- # @param app_key [String]
1124
- # @param [Hash] opts the optional parameters
1125
- # @option opts [GeoLocationModel] :geo_location_model 位置信息
1126
- # @return [Array<(UserLocationPostResultApiResponse, Integer, Hash)>] UserLocationPostResultApiResponse data, response status code and response headers
1127
- def user_location_post_with_http_info(app_key, opts = {})
1128
- if @api_client.config.debugging
1129
- @api_client.config.logger.debug 'Calling API: UserApi.user_location_post ...'
1130
- end
1131
- # verify the required parameter 'app_key' is set
1132
- if @api_client.config.client_side_validation && app_key.nil?
1133
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_location_post"
1134
- end
1135
- # resource path
1136
- local_var_path = '/User/{appKey}/Location'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1137
-
1138
- # query parameters
1139
- query_params = opts[:query_params] || {}
1140
-
1141
- # header parameters
1142
- header_params = opts[:header_params] || {}
1143
- # HTTP header 'Accept' (if needed)
1144
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1145
- # HTTP header 'Content-Type'
1146
- content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1147
- if !content_type.nil?
1148
- header_params['Content-Type'] = content_type
1149
- end
1150
-
1151
- # form parameters
1152
- form_params = opts[:form_params] || {}
1153
-
1154
- # http body (model)
1155
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'geo_location_model'])
1156
-
1157
- # return_type
1158
- return_type = opts[:debug_return_type] || 'UserLocationPostResultApiResponse'
1159
-
1160
- # auth_names
1161
- auth_names = opts[:debug_auth_names] || ['Bearer']
1162
-
1163
- new_options = opts.merge(
1164
- :operation => :"UserApi.user_location_post",
1165
- :header_params => header_params,
1166
- :query_params => query_params,
1167
- :form_params => form_params,
1168
- :body => post_body,
1169
- :auth_names => auth_names,
1170
- :return_type => return_type
1171
- )
1172
-
1173
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1174
- if @api_client.config.debugging
1175
- @api_client.config.logger.debug "API called: UserApi#user_location_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1176
- end
1177
- return data, status_code, headers
1178
- end
1179
-
1180
- # 更新位置
1181
- # 根据位置ID更新位置信息
1182
- # @param id [Integer] 位置ID
1183
- # @param app_key [String]
1184
- # @param [Hash] opts the optional parameters
1185
- # @option opts [GeoLocationModel] :geo_location_model 位置信息
1186
- # @return [BooleanApiResponse]
1187
- def user_location_put(id, app_key, opts = {})
1188
- data, _status_code, _headers = user_location_put_with_http_info(id, app_key, opts)
1189
- data
1190
- end
1191
-
1192
- # 更新位置
1193
- # 根据位置ID更新位置信息
1194
- # @param id [Integer] 位置ID
1195
- # @param app_key [String]
1196
- # @param [Hash] opts the optional parameters
1197
- # @option opts [GeoLocationModel] :geo_location_model 位置信息
1198
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
1199
- def user_location_put_with_http_info(id, app_key, opts = {})
1200
- if @api_client.config.debugging
1201
- @api_client.config.logger.debug 'Calling API: UserApi.user_location_put ...'
1202
- end
1203
- # verify the required parameter 'id' is set
1204
- if @api_client.config.client_side_validation && id.nil?
1205
- fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_location_put"
1206
- end
1207
- # verify the required parameter 'app_key' is set
1208
- if @api_client.config.client_side_validation && app_key.nil?
1209
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_location_put"
1210
- end
1211
- # resource path
1212
- local_var_path = '/User/{appKey}/Location/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1213
-
1214
- # query parameters
1215
- query_params = opts[:query_params] || {}
1216
-
1217
- # header parameters
1218
- header_params = opts[:header_params] || {}
1219
- # HTTP header 'Accept' (if needed)
1220
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1221
- # HTTP header 'Content-Type'
1222
- content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1223
- if !content_type.nil?
1224
- header_params['Content-Type'] = content_type
1225
- end
1226
-
1227
- # form parameters
1228
- form_params = opts[:form_params] || {}
1229
-
1230
- # http body (model)
1231
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'geo_location_model'])
1232
-
1233
- # return_type
1234
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
1235
-
1236
- # auth_names
1237
- auth_names = opts[:debug_auth_names] || ['Bearer']
1238
-
1239
- new_options = opts.merge(
1240
- :operation => :"UserApi.user_location_put",
1241
- :header_params => header_params,
1242
- :query_params => query_params,
1243
- :form_params => form_params,
1244
- :body => post_body,
1245
- :auth_names => auth_names,
1246
- :return_type => return_type
1247
- )
1248
-
1249
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1250
- if @api_client.config.debugging
1251
- @api_client.config.logger.debug "API called: UserApi#user_location_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1252
- end
1253
- return data, status_code, headers
1254
- end
1255
-
1256
- # 获取位置列表
1257
- # 根据条件获取位置列表
1258
- # @param app_key [String]
1259
- # @param [Hash] opts the optional parameters
1260
- # @option opts [String] :tag 标签
1261
- # @option opts [String] :type 分类
1262
- # @option opts [Float] :x 纬度
1263
- # @option opts [Float] :y 经度
1264
- # @option opts [Integer] :sphere 附近距离,单位:米
1265
- # @option opts [Integer] :skip 跳过的记录数
1266
- # @option opts [Integer] :take 获取的记录数 (default to 10)
1267
- # @return [UserLocationsResultApiResponse]
1268
- def user_locations(app_key, opts = {})
1269
- data, _status_code, _headers = user_locations_with_http_info(app_key, opts)
1270
- data
1271
- end
1272
-
1273
- # 获取位置列表
1274
- # 根据条件获取位置列表
1275
- # @param app_key [String]
1276
- # @param [Hash] opts the optional parameters
1277
- # @option opts [String] :tag 标签
1278
- # @option opts [String] :type 分类
1279
- # @option opts [Float] :x 纬度
1280
- # @option opts [Float] :y 经度
1281
- # @option opts [Integer] :sphere 附近距离,单位:米
1282
- # @option opts [Integer] :skip 跳过的记录数
1283
- # @option opts [Integer] :take 获取的记录数 (default to 10)
1284
- # @return [Array<(UserLocationsResultApiResponse, Integer, Hash)>] UserLocationsResultApiResponse data, response status code and response headers
1285
- def user_locations_with_http_info(app_key, opts = {})
1286
- if @api_client.config.debugging
1287
- @api_client.config.logger.debug 'Calling API: UserApi.user_locations ...'
1288
- end
1289
- # verify the required parameter 'app_key' is set
1290
- if @api_client.config.client_side_validation && app_key.nil?
1291
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_locations"
1292
- end
1293
- # resource path
1294
- local_var_path = '/User/{appKey}/Locations'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1295
-
1296
- # query parameters
1297
- query_params = opts[:query_params] || {}
1298
- query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
1299
- query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
1300
- query_params[:'x'] = opts[:'x'] if !opts[:'x'].nil?
1301
- query_params[:'y'] = opts[:'y'] if !opts[:'y'].nil?
1302
- query_params[:'sphere'] = opts[:'sphere'] if !opts[:'sphere'].nil?
1303
- query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
1304
- query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
1305
-
1306
- # header parameters
1307
- header_params = opts[:header_params] || {}
1308
- # HTTP header 'Accept' (if needed)
1309
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1310
-
1311
- # form parameters
1312
- form_params = opts[:form_params] || {}
1313
-
1314
- # http body (model)
1315
- post_body = opts[:debug_body]
1316
-
1317
- # return_type
1318
- return_type = opts[:debug_return_type] || 'UserLocationsResultApiResponse'
1319
-
1320
- # auth_names
1321
- auth_names = opts[:debug_auth_names] || ['Bearer']
1322
-
1323
- new_options = opts.merge(
1324
- :operation => :"UserApi.user_locations",
1325
- :header_params => header_params,
1326
- :query_params => query_params,
1327
- :form_params => form_params,
1328
- :body => post_body,
1329
- :auth_names => auth_names,
1330
- :return_type => return_type
1331
- )
1332
-
1333
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1334
- if @api_client.config.debugging
1335
- @api_client.config.logger.debug "API called: UserApi#user_locations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1336
- end
1337
- return data, status_code, headers
1338
- end
1339
-
1340
- # 有共同粉丝的用户推荐
1341
- # 推荐有共同粉丝的用户
1342
- # @param app_key [String]
1343
- # @param [Hash] opts the optional parameters
1344
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
1345
- # @option opts [Integer] :take 获取的记录数 (default to 10)
1346
- # @return [UserMutualFollowersResultApiResponse]
1347
- def user_mutual_followers(app_key, opts = {})
1348
- data, _status_code, _headers = user_mutual_followers_with_http_info(app_key, opts)
1349
- data
1350
- end
1351
-
1352
- # 有共同粉丝的用户推荐
1353
- # 推荐有共同粉丝的用户
1354
- # @param app_key [String]
1355
- # @param [Hash] opts the optional parameters
1356
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
1357
- # @option opts [Integer] :take 获取的记录数 (default to 10)
1358
- # @return [Array<(UserMutualFollowersResultApiResponse, Integer, Hash)>] UserMutualFollowersResultApiResponse data, response status code and response headers
1359
- def user_mutual_followers_with_http_info(app_key, opts = {})
1360
- if @api_client.config.debugging
1361
- @api_client.config.logger.debug 'Calling API: UserApi.user_mutual_followers ...'
1362
- end
1363
- # verify the required parameter 'app_key' is set
1364
- if @api_client.config.client_side_validation && app_key.nil?
1365
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_mutual_followers"
1366
- end
1367
- # resource path
1368
- local_var_path = '/User/{appKey}/Friends/MutualFollowers'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1369
-
1370
- # query parameters
1371
- query_params = opts[:query_params] || {}
1372
- query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
1373
- query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
1374
-
1375
- # header parameters
1376
- header_params = opts[:header_params] || {}
1377
- # HTTP header 'Accept' (if needed)
1378
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1379
-
1380
- # form parameters
1381
- form_params = opts[:form_params] || {}
1382
-
1383
- # http body (model)
1384
- post_body = opts[:debug_body]
1385
-
1386
- # return_type
1387
- return_type = opts[:debug_return_type] || 'UserMutualFollowersResultApiResponse'
1388
-
1389
- # auth_names
1390
- auth_names = opts[:debug_auth_names] || ['Bearer']
1391
-
1392
- new_options = opts.merge(
1393
- :operation => :"UserApi.user_mutual_followers",
1394
- :header_params => header_params,
1395
- :query_params => query_params,
1396
- :form_params => form_params,
1397
- :body => post_body,
1398
- :auth_names => auth_names,
1399
- :return_type => return_type
1400
- )
1401
-
1402
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1403
- if @api_client.config.debugging
1404
- @api_client.config.logger.debug "API called: UserApi#user_mutual_followers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1405
- end
1406
- return data, status_code, headers
1407
- end
1408
-
1409
- # 有共同关注的用户推荐
1410
- # 推荐有共同关注的用户
1411
- # @param app_key [String]
1412
- # @param [Hash] opts the optional parameters
1413
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
1414
- # @option opts [Integer] :take 获取的记录数 (default to 10)
1415
- # @return [UserMutualFollowingsResultApiResponse]
1416
- def user_mutual_followings(app_key, opts = {})
1417
- data, _status_code, _headers = user_mutual_followings_with_http_info(app_key, opts)
1418
- data
1419
- end
1420
-
1421
- # 有共同关注的用户推荐
1422
- # 推荐有共同关注的用户
1423
- # @param app_key [String]
1424
- # @param [Hash] opts the optional parameters
1425
- # @option opts [Integer] :skip 跳过的记录数 (default to 0)
1426
- # @option opts [Integer] :take 获取的记录数 (default to 10)
1427
- # @return [Array<(UserMutualFollowingsResultApiResponse, Integer, Hash)>] UserMutualFollowingsResultApiResponse data, response status code and response headers
1428
- def user_mutual_followings_with_http_info(app_key, opts = {})
1429
- if @api_client.config.debugging
1430
- @api_client.config.logger.debug 'Calling API: UserApi.user_mutual_followings ...'
1431
- end
1432
- # verify the required parameter 'app_key' is set
1433
- if @api_client.config.client_side_validation && app_key.nil?
1434
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_mutual_followings"
1435
- end
1436
- # resource path
1437
- local_var_path = '/User/{appKey}/Friends/MutualFollowings'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1438
-
1439
- # query parameters
1440
- query_params = opts[:query_params] || {}
1441
- query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
1442
- query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
1443
-
1444
- # header parameters
1445
- header_params = opts[:header_params] || {}
1446
- # HTTP header 'Accept' (if needed)
1447
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1448
-
1449
- # form parameters
1450
- form_params = opts[:form_params] || {}
1451
-
1452
- # http body (model)
1453
- post_body = opts[:debug_body]
1454
-
1455
- # return_type
1456
- return_type = opts[:debug_return_type] || 'UserMutualFollowingsResultApiResponse'
1457
-
1458
- # auth_names
1459
- auth_names = opts[:debug_auth_names] || ['Bearer']
1460
-
1461
- new_options = opts.merge(
1462
- :operation => :"UserApi.user_mutual_followings",
1463
- :header_params => header_params,
1464
- :query_params => query_params,
1465
- :form_params => form_params,
1466
- :body => post_body,
1467
- :auth_names => auth_names,
1468
- :return_type => return_type
1469
- )
1470
-
1471
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1472
- if @api_client.config.debugging
1473
- @api_client.config.logger.debug "API called: UserApi#user_mutual_followings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1474
- end
1475
- return data, status_code, headers
1476
- end
1477
-
1478
- # 外部账号 绑定
1479
- # 绑定外部账号
1480
- # @param app_key [String]
1481
- # @param [Hash] opts the optional parameters
1482
- # @option opts [OAuthAccountBindRequest] :o_auth_account_bind_request 绑定请求参数
1483
- # @return [BooleanApiResponse]
1484
- def user_o_auth_account_bind(app_key, opts = {})
1485
- data, _status_code, _headers = user_o_auth_account_bind_with_http_info(app_key, opts)
1486
- data
1487
- end
1488
-
1489
- # 外部账号 绑定
1490
- # 绑定外部账号
1491
- # @param app_key [String]
1492
- # @param [Hash] opts the optional parameters
1493
- # @option opts [OAuthAccountBindRequest] :o_auth_account_bind_request 绑定请求参数
1494
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
1495
- def user_o_auth_account_bind_with_http_info(app_key, opts = {})
1496
- if @api_client.config.debugging
1497
- @api_client.config.logger.debug 'Calling API: UserApi.user_o_auth_account_bind ...'
1498
- end
1499
- # verify the required parameter 'app_key' is set
1500
- if @api_client.config.client_side_validation && app_key.nil?
1501
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_o_auth_account_bind"
1502
- end
1503
- # resource path
1504
- local_var_path = '/User/{appKey}/OAuthAccountBind'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1505
-
1506
- # query parameters
1507
- query_params = opts[:query_params] || {}
1508
-
1509
- # header parameters
1510
- header_params = opts[:header_params] || {}
1511
- # HTTP header 'Accept' (if needed)
1512
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1513
- # HTTP header 'Content-Type'
1514
- content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1515
- if !content_type.nil?
1516
- header_params['Content-Type'] = content_type
1517
- end
1518
-
1519
- # form parameters
1520
- form_params = opts[:form_params] || {}
1521
-
1522
- # http body (model)
1523
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'o_auth_account_bind_request'])
1524
-
1525
- # return_type
1526
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
1527
-
1528
- # auth_names
1529
- auth_names = opts[:debug_auth_names] || ['Bearer']
1530
-
1531
- new_options = opts.merge(
1532
- :operation => :"UserApi.user_o_auth_account_bind",
1533
- :header_params => header_params,
1534
- :query_params => query_params,
1535
- :form_params => form_params,
1536
- :body => post_body,
1537
- :auth_names => auth_names,
1538
- :return_type => return_type
1539
- )
1540
-
1541
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1542
- if @api_client.config.debugging
1543
- @api_client.config.logger.debug "API called: UserApi#user_o_auth_account_bind\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1544
- end
1545
- return data, status_code, headers
1546
- end
1547
-
1548
- # 外部账号 登录
1549
- # 使用外部账号进行登录
1550
- # @param app_key [String]
1551
- # @param [Hash] opts the optional parameters
1552
- # @option opts [OAuthAccountSignInRequest] :o_auth_account_sign_in_request 登录请求参数
1553
- # @return [TokenModelApiResponse]
1554
- def user_o_auth_account_sign_in(app_key, opts = {})
1555
- data, _status_code, _headers = user_o_auth_account_sign_in_with_http_info(app_key, opts)
1556
- data
1557
- end
1558
-
1559
- # 外部账号 登录
1560
- # 使用外部账号进行登录
1561
- # @param app_key [String]
1562
- # @param [Hash] opts the optional parameters
1563
- # @option opts [OAuthAccountSignInRequest] :o_auth_account_sign_in_request 登录请求参数
1564
- # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
1565
- def user_o_auth_account_sign_in_with_http_info(app_key, opts = {})
1566
- if @api_client.config.debugging
1567
- @api_client.config.logger.debug 'Calling API: UserApi.user_o_auth_account_sign_in ...'
1568
- end
1569
- # verify the required parameter 'app_key' is set
1570
- if @api_client.config.client_side_validation && app_key.nil?
1571
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_o_auth_account_sign_in"
1572
- end
1573
- # resource path
1574
- local_var_path = '/User/{appKey}/OAuthAccountSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1575
-
1576
- # query parameters
1577
- query_params = opts[:query_params] || {}
1578
-
1579
- # header parameters
1580
- header_params = opts[:header_params] || {}
1581
- # HTTP header 'Accept' (if needed)
1582
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1583
- # HTTP header 'Content-Type'
1584
- content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1585
- if !content_type.nil?
1586
- header_params['Content-Type'] = content_type
1587
- end
1588
-
1589
- # form parameters
1590
- form_params = opts[:form_params] || {}
1591
-
1592
- # http body (model)
1593
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'o_auth_account_sign_in_request'])
1594
-
1595
- # return_type
1596
- return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
1597
-
1598
- # auth_names
1599
- auth_names = opts[:debug_auth_names] || ['Bearer']
1600
-
1601
- new_options = opts.merge(
1602
- :operation => :"UserApi.user_o_auth_account_sign_in",
1603
- :header_params => header_params,
1604
- :query_params => query_params,
1605
- :form_params => form_params,
1606
- :body => post_body,
1607
- :auth_names => auth_names,
1608
- :return_type => return_type
1609
- )
1610
-
1611
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1612
- if @api_client.config.debugging
1613
- @api_client.config.logger.debug "API called: UserApi#user_o_auth_account_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1614
- end
1615
- return data, status_code, headers
1616
- end
1617
-
1618
- # 外部账号 绑定列表
1619
- # 获取外部账号绑定列表
1620
- # @param app_key [String]
1621
- # @param [Hash] opts the optional parameters
1622
- # @return [UserLoginsListApiResponse]
1623
- def user_o_auth_accounts(app_key, opts = {})
1624
- data, _status_code, _headers = user_o_auth_accounts_with_http_info(app_key, opts)
1625
- data
1626
- end
1627
-
1628
- # 外部账号 绑定列表
1629
- # 获取外部账号绑定列表
1630
- # @param app_key [String]
1631
- # @param [Hash] opts the optional parameters
1632
- # @return [Array<(UserLoginsListApiResponse, Integer, Hash)>] UserLoginsListApiResponse data, response status code and response headers
1633
- def user_o_auth_accounts_with_http_info(app_key, opts = {})
1634
- if @api_client.config.debugging
1635
- @api_client.config.logger.debug 'Calling API: UserApi.user_o_auth_accounts ...'
1636
- end
1637
- # verify the required parameter 'app_key' is set
1638
- if @api_client.config.client_side_validation && app_key.nil?
1639
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_o_auth_accounts"
1640
- end
1641
- # resource path
1642
- local_var_path = '/User/{appKey}/OAuthAccounts'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1643
-
1644
- # query parameters
1645
- query_params = opts[:query_params] || {}
1646
-
1647
- # header parameters
1648
- header_params = opts[:header_params] || {}
1649
- # HTTP header 'Accept' (if needed)
1650
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1651
-
1652
- # form parameters
1653
- form_params = opts[:form_params] || {}
1654
-
1655
- # http body (model)
1656
- post_body = opts[:debug_body]
1657
-
1658
- # return_type
1659
- return_type = opts[:debug_return_type] || 'UserLoginsListApiResponse'
1660
-
1661
- # auth_names
1662
- auth_names = opts[:debug_auth_names] || ['Bearer']
1663
-
1664
- new_options = opts.merge(
1665
- :operation => :"UserApi.user_o_auth_accounts",
1666
- :header_params => header_params,
1667
- :query_params => query_params,
1668
- :form_params => form_params,
1669
- :body => post_body,
1670
- :auth_names => auth_names,
1671
- :return_type => return_type
1672
- )
1673
-
1674
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1675
- if @api_client.config.debugging
1676
- @api_client.config.logger.debug "API called: UserApi#user_o_auth_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1677
- end
1678
- return data, status_code, headers
1679
- end
1680
-
1681
- # 外部账号 更新绑定
1682
- # 更新外部账号绑定信息
1683
- # @param id [Integer] 绑定ID
1684
- # @param app_key [String]
1685
- # @param [Hash] opts the optional parameters
1686
- # @option opts [OAuthAccountPutBindRequest] :o_auth_account_put_bind_request 更新请求参数
1687
- # @return [BooleanApiResponse]
1688
- def user_o_auth_accounts_put_bind(id, app_key, opts = {})
1689
- data, _status_code, _headers = user_o_auth_accounts_put_bind_with_http_info(id, app_key, opts)
1690
- data
1691
- end
1692
-
1693
- # 外部账号 更新绑定
1694
- # 更新外部账号绑定信息
1695
- # @param id [Integer] 绑定ID
1696
- # @param app_key [String]
1697
- # @param [Hash] opts the optional parameters
1698
- # @option opts [OAuthAccountPutBindRequest] :o_auth_account_put_bind_request 更新请求参数
1699
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
1700
- def user_o_auth_accounts_put_bind_with_http_info(id, app_key, opts = {})
1701
- if @api_client.config.debugging
1702
- @api_client.config.logger.debug 'Calling API: UserApi.user_o_auth_accounts_put_bind ...'
1703
- end
1704
- # verify the required parameter 'id' is set
1705
- if @api_client.config.client_side_validation && id.nil?
1706
- fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_o_auth_accounts_put_bind"
1707
- end
1708
- # verify the required parameter 'app_key' is set
1709
- if @api_client.config.client_side_validation && app_key.nil?
1710
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_o_auth_accounts_put_bind"
1711
- end
1712
- # resource path
1713
- local_var_path = '/User/{appKey}/OAuthAccounts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1714
-
1715
- # query parameters
1716
- query_params = opts[:query_params] || {}
1717
-
1718
- # header parameters
1719
- header_params = opts[:header_params] || {}
1720
- # HTTP header 'Accept' (if needed)
1721
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1722
- # HTTP header 'Content-Type'
1723
- content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1724
- if !content_type.nil?
1725
- header_params['Content-Type'] = content_type
1726
- end
1727
-
1728
- # form parameters
1729
- form_params = opts[:form_params] || {}
1730
-
1731
- # http body (model)
1732
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'o_auth_account_put_bind_request'])
1733
-
1734
- # return_type
1735
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
1736
-
1737
- # auth_names
1738
- auth_names = opts[:debug_auth_names] || ['Bearer']
1739
-
1740
- new_options = opts.merge(
1741
- :operation => :"UserApi.user_o_auth_accounts_put_bind",
1742
- :header_params => header_params,
1743
- :query_params => query_params,
1744
- :form_params => form_params,
1745
- :body => post_body,
1746
- :auth_names => auth_names,
1747
- :return_type => return_type
1748
- )
1749
-
1750
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1751
- if @api_client.config.debugging
1752
- @api_client.config.logger.debug "API called: UserApi#user_o_auth_accounts_put_bind\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1753
- end
1754
- return data, status_code, headers
1755
- end
1756
-
1757
- # 外部账号 删除绑定
1758
- # 删除外部账号绑定
1759
- # @param id [Integer] 绑定ID
22
+ # 注销账号
23
+ # 清除用户所有附属数据,并注销账号
1760
24
  # @param app_key [String]
1761
25
  # @param [Hash] opts the optional parameters
1762
26
  # @return [BooleanApiResponse]
1763
- def user_o_auth_accounts_un_bind(id, app_key, opts = {})
1764
- data, _status_code, _headers = user_o_auth_accounts_un_bind_with_http_info(id, app_key, opts)
27
+ def user_deactivate_hard(app_key, opts = {})
28
+ data, _status_code, _headers = user_deactivate_hard_with_http_info(app_key, opts)
1765
29
  data
1766
30
  end
1767
31
 
1768
- # 外部账号 删除绑定
1769
- # 删除外部账号绑定
1770
- # @param id [Integer] 绑定ID
32
+ # 注销账号
33
+ # 清除用户所有附属数据,并注销账号
1771
34
  # @param app_key [String]
1772
35
  # @param [Hash] opts the optional parameters
1773
36
  # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
1774
- def user_o_auth_accounts_un_bind_with_http_info(id, app_key, opts = {})
37
+ def user_deactivate_hard_with_http_info(app_key, opts = {})
1775
38
  if @api_client.config.debugging
1776
- @api_client.config.logger.debug 'Calling API: UserApi.user_o_auth_accounts_un_bind ...'
1777
- end
1778
- # verify the required parameter 'id' is set
1779
- if @api_client.config.client_side_validation && id.nil?
1780
- fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_o_auth_accounts_un_bind"
39
+ @api_client.config.logger.debug 'Calling API: UserApi.user_deactivate_hard ...'
1781
40
  end
1782
41
  # verify the required parameter 'app_key' is set
1783
42
  if @api_client.config.client_side_validation && app_key.nil?
1784
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_o_auth_accounts_un_bind"
43
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_deactivate_hard"
1785
44
  end
1786
45
  # resource path
1787
- local_var_path = '/User/{appKey}/OAuthAccounts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
46
+ local_var_path = '/User/{appKey}/DeactivateHard'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1788
47
 
1789
48
  # query parameters
1790
49
  query_params = opts[:query_params] || {}
@@ -1807,77 +66,7 @@ module ZSGFClient
1807
66
  auth_names = opts[:debug_auth_names] || ['Bearer']
1808
67
 
1809
68
  new_options = opts.merge(
1810
- :operation => :"UserApi.user_o_auth_accounts_un_bind",
1811
- :header_params => header_params,
1812
- :query_params => query_params,
1813
- :form_params => form_params,
1814
- :body => post_body,
1815
- :auth_names => auth_names,
1816
- :return_type => return_type
1817
- )
1818
-
1819
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1820
- if @api_client.config.debugging
1821
- @api_client.config.logger.debug "API called: UserApi#user_o_auth_accounts_un_bind\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1822
- end
1823
- return data, status_code, headers
1824
- end
1825
-
1826
- # 手机登录
1827
- # 使用手机号码进行登录
1828
- # @param app_key [String]
1829
- # @param [Hash] opts the optional parameters
1830
- # @option opts [PhoneSignInRequest] :phone_sign_in_request 登录请求参数
1831
- # @return [TokenModelApiResponse]
1832
- def user_phone_sign_in(app_key, opts = {})
1833
- data, _status_code, _headers = user_phone_sign_in_with_http_info(app_key, opts)
1834
- data
1835
- end
1836
-
1837
- # 手机登录
1838
- # 使用手机号码进行登录
1839
- # @param app_key [String]
1840
- # @param [Hash] opts the optional parameters
1841
- # @option opts [PhoneSignInRequest] :phone_sign_in_request 登录请求参数
1842
- # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
1843
- def user_phone_sign_in_with_http_info(app_key, opts = {})
1844
- if @api_client.config.debugging
1845
- @api_client.config.logger.debug 'Calling API: UserApi.user_phone_sign_in ...'
1846
- end
1847
- # verify the required parameter 'app_key' is set
1848
- if @api_client.config.client_side_validation && app_key.nil?
1849
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_phone_sign_in"
1850
- end
1851
- # resource path
1852
- local_var_path = '/User/{appKey}/PhoneSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1853
-
1854
- # query parameters
1855
- query_params = opts[:query_params] || {}
1856
-
1857
- # header parameters
1858
- header_params = opts[:header_params] || {}
1859
- # HTTP header 'Accept' (if needed)
1860
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1861
- # HTTP header 'Content-Type'
1862
- content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1863
- if !content_type.nil?
1864
- header_params['Content-Type'] = content_type
1865
- end
1866
-
1867
- # form parameters
1868
- form_params = opts[:form_params] || {}
1869
-
1870
- # http body (model)
1871
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'phone_sign_in_request'])
1872
-
1873
- # return_type
1874
- return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
1875
-
1876
- # auth_names
1877
- auth_names = opts[:debug_auth_names] || ['Bearer']
1878
-
1879
- new_options = opts.merge(
1880
- :operation => :"UserApi.user_phone_sign_in",
69
+ :operation => :"UserApi.user_deactivate_hard",
1881
70
  :header_params => header_params,
1882
71
  :query_params => query_params,
1883
72
  :form_params => form_params,
@@ -1886,40 +75,40 @@ module ZSGFClient
1886
75
  :return_type => return_type
1887
76
  )
1888
77
 
1889
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
78
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1890
79
  if @api_client.config.debugging
1891
- @api_client.config.logger.debug "API called: UserApi#user_phone_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ @api_client.config.logger.debug "API called: UserApi#user_deactivate_hard\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1892
81
  end
1893
82
  return data, status_code, headers
1894
83
  end
1895
84
 
1896
- # 手机注册
1897
- # 使用手机号码进行注册
85
+ # 邮箱登录
86
+ # 使用邮箱进行登录
1898
87
  # @param app_key [String]
1899
88
  # @param [Hash] opts the optional parameters
1900
- # @option opts [PhoneSignUpRequest] :phone_sign_up_request 注册请求参数
89
+ # @option opts [EmailSignInRequest] :email_sign_in_request 登录请求参数
1901
90
  # @return [TokenModelApiResponse]
1902
- def user_phone_sign_up(app_key, opts = {})
1903
- data, _status_code, _headers = user_phone_sign_up_with_http_info(app_key, opts)
91
+ def user_email_sign_in(app_key, opts = {})
92
+ data, _status_code, _headers = user_email_sign_in_with_http_info(app_key, opts)
1904
93
  data
1905
94
  end
1906
95
 
1907
- # 手机注册
1908
- # 使用手机号码进行注册
96
+ # 邮箱登录
97
+ # 使用邮箱进行登录
1909
98
  # @param app_key [String]
1910
99
  # @param [Hash] opts the optional parameters
1911
- # @option opts [PhoneSignUpRequest] :phone_sign_up_request 注册请求参数
100
+ # @option opts [EmailSignInRequest] :email_sign_in_request 登录请求参数
1912
101
  # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
1913
- def user_phone_sign_up_with_http_info(app_key, opts = {})
102
+ def user_email_sign_in_with_http_info(app_key, opts = {})
1914
103
  if @api_client.config.debugging
1915
- @api_client.config.logger.debug 'Calling API: UserApi.user_phone_sign_up ...'
104
+ @api_client.config.logger.debug 'Calling API: UserApi.user_email_sign_in ...'
1916
105
  end
1917
106
  # verify the required parameter 'app_key' is set
1918
107
  if @api_client.config.client_side_validation && app_key.nil?
1919
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_phone_sign_up"
108
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_email_sign_in"
1920
109
  end
1921
110
  # resource path
1922
- local_var_path = '/User/{appKey}/PhoneSignUp'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
111
+ local_var_path = '/User/{appKey}/EmailSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1923
112
 
1924
113
  # query parameters
1925
114
  query_params = opts[:query_params] || {}
@@ -1938,7 +127,7 @@ module ZSGFClient
1938
127
  form_params = opts[:form_params] || {}
1939
128
 
1940
129
  # http body (model)
1941
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'phone_sign_up_request'])
130
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'email_sign_in_request'])
1942
131
 
1943
132
  # return_type
1944
133
  return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
@@ -1947,7 +136,7 @@ module ZSGFClient
1947
136
  auth_names = opts[:debug_auth_names] || ['Bearer']
1948
137
 
1949
138
  new_options = opts.merge(
1950
- :operation => :"UserApi.user_phone_sign_up",
139
+ :operation => :"UserApi.user_email_sign_in",
1951
140
  :header_params => header_params,
1952
141
  :query_params => query_params,
1953
142
  :form_params => form_params,
@@ -1958,36 +147,38 @@ module ZSGFClient
1958
147
 
1959
148
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1960
149
  if @api_client.config.debugging
1961
- @api_client.config.logger.debug "API called: UserApi#user_phone_sign_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ @api_client.config.logger.debug "API called: UserApi#user_email_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1962
151
  end
1963
152
  return data, status_code, headers
1964
153
  end
1965
154
 
1966
- # 获取个人资料
1967
- # 获取当前用户的个人资料
155
+ # 邮箱注册
156
+ # 使用邮箱进行注册
1968
157
  # @param app_key [String]
1969
158
  # @param [Hash] opts the optional parameters
1970
- # @return [UserProfileResultApiResponse]
1971
- def user_profile(app_key, opts = {})
1972
- data, _status_code, _headers = user_profile_with_http_info(app_key, opts)
159
+ # @option opts [EmailSignUpRequest] :email_sign_up_request 注册请求参数
160
+ # @return [TokenModelApiResponse]
161
+ def user_email_sign_up(app_key, opts = {})
162
+ data, _status_code, _headers = user_email_sign_up_with_http_info(app_key, opts)
1973
163
  data
1974
164
  end
1975
165
 
1976
- # 获取个人资料
1977
- # 获取当前用户的个人资料
166
+ # 邮箱注册
167
+ # 使用邮箱进行注册
1978
168
  # @param app_key [String]
1979
169
  # @param [Hash] opts the optional parameters
1980
- # @return [Array<(UserProfileResultApiResponse, Integer, Hash)>] UserProfileResultApiResponse data, response status code and response headers
1981
- def user_profile_with_http_info(app_key, opts = {})
170
+ # @option opts [EmailSignUpRequest] :email_sign_up_request 注册请求参数
171
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
172
+ def user_email_sign_up_with_http_info(app_key, opts = {})
1982
173
  if @api_client.config.debugging
1983
- @api_client.config.logger.debug 'Calling API: UserApi.user_profile ...'
174
+ @api_client.config.logger.debug 'Calling API: UserApi.user_email_sign_up ...'
1984
175
  end
1985
176
  # verify the required parameter 'app_key' is set
1986
177
  if @api_client.config.client_side_validation && app_key.nil?
1987
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_profile"
178
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_email_sign_up"
1988
179
  end
1989
180
  # resource path
1990
- local_var_path = '/User/{appKey}/Profile'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
181
+ local_var_path = '/User/{appKey}/EmailSignUp'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1991
182
 
1992
183
  # query parameters
1993
184
  query_params = opts[:query_params] || {}
@@ -1996,21 +187,26 @@ module ZSGFClient
1996
187
  header_params = opts[:header_params] || {}
1997
188
  # HTTP header 'Accept' (if needed)
1998
189
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
190
+ # HTTP header 'Content-Type'
191
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
192
+ if !content_type.nil?
193
+ header_params['Content-Type'] = content_type
194
+ end
1999
195
 
2000
196
  # form parameters
2001
197
  form_params = opts[:form_params] || {}
2002
198
 
2003
199
  # http body (model)
2004
- post_body = opts[:debug_body]
200
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'email_sign_up_request'])
2005
201
 
2006
202
  # return_type
2007
- return_type = opts[:debug_return_type] || 'UserProfileResultApiResponse'
203
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
2008
204
 
2009
205
  # auth_names
2010
206
  auth_names = opts[:debug_auth_names] || ['Bearer']
2011
207
 
2012
208
  new_options = opts.merge(
2013
- :operation => :"UserApi.user_profile",
209
+ :operation => :"UserApi.user_email_sign_up",
2014
210
  :header_params => header_params,
2015
211
  :query_params => query_params,
2016
212
  :form_params => form_params,
@@ -2019,46 +215,40 @@ module ZSGFClient
2019
215
  :return_type => return_type
2020
216
  )
2021
217
 
2022
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
218
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2023
219
  if @api_client.config.debugging
2024
- @api_client.config.logger.debug "API called: UserApi#user_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
220
+ @api_client.config.logger.debug "API called: UserApi#user_email_sign_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2025
221
  end
2026
222
  return data, status_code, headers
2027
223
  end
2028
224
 
2029
- # 更新用户信息
2030
- # 根据用户ID更新用户信息
2031
- # @param id [Integer] 用户ID
225
+ # 手机登录
226
+ # 使用手机号码进行登录
2032
227
  # @param app_key [String]
2033
228
  # @param [Hash] opts the optional parameters
2034
- # @option opts [User] :user 用户信息
2035
- # @return [BooleanApiResponse]
2036
- def user_put(id, app_key, opts = {})
2037
- data, _status_code, _headers = user_put_with_http_info(id, app_key, opts)
229
+ # @option opts [PhoneSignInRequest] :phone_sign_in_request 登录请求参数
230
+ # @return [TokenModelApiResponse]
231
+ def user_phone_sign_in(app_key, opts = {})
232
+ data, _status_code, _headers = user_phone_sign_in_with_http_info(app_key, opts)
2038
233
  data
2039
234
  end
2040
235
 
2041
- # 更新用户信息
2042
- # 根据用户ID更新用户信息
2043
- # @param id [Integer] 用户ID
236
+ # 手机登录
237
+ # 使用手机号码进行登录
2044
238
  # @param app_key [String]
2045
239
  # @param [Hash] opts the optional parameters
2046
- # @option opts [User] :user 用户信息
2047
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
2048
- def user_put_with_http_info(id, app_key, opts = {})
240
+ # @option opts [PhoneSignInRequest] :phone_sign_in_request 登录请求参数
241
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
242
+ def user_phone_sign_in_with_http_info(app_key, opts = {})
2049
243
  if @api_client.config.debugging
2050
- @api_client.config.logger.debug 'Calling API: UserApi.user_put ...'
2051
- end
2052
- # verify the required parameter 'id' is set
2053
- if @api_client.config.client_side_validation && id.nil?
2054
- fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_put"
244
+ @api_client.config.logger.debug 'Calling API: UserApi.user_phone_sign_in ...'
2055
245
  end
2056
246
  # verify the required parameter 'app_key' is set
2057
247
  if @api_client.config.client_side_validation && app_key.nil?
2058
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_put"
248
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_phone_sign_in"
2059
249
  end
2060
250
  # resource path
2061
- local_var_path = '/User/{appKey}/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
251
+ local_var_path = '/User/{appKey}/PhoneSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2062
252
 
2063
253
  # query parameters
2064
254
  query_params = opts[:query_params] || {}
@@ -2077,16 +267,16 @@ module ZSGFClient
2077
267
  form_params = opts[:form_params] || {}
2078
268
 
2079
269
  # http body (model)
2080
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'user'])
270
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'phone_sign_in_request'])
2081
271
 
2082
272
  # return_type
2083
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
273
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
2084
274
 
2085
275
  # auth_names
2086
276
  auth_names = opts[:debug_auth_names] || ['Bearer']
2087
277
 
2088
278
  new_options = opts.merge(
2089
- :operation => :"UserApi.user_put",
279
+ :operation => :"UserApi.user_phone_sign_in",
2090
280
  :header_params => header_params,
2091
281
  :query_params => query_params,
2092
282
  :form_params => form_params,
@@ -2095,40 +285,40 @@ module ZSGFClient
2095
285
  :return_type => return_type
2096
286
  )
2097
287
 
2098
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
288
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2099
289
  if @api_client.config.debugging
2100
- @api_client.config.logger.debug "API called: UserApi#user_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
290
+ @api_client.config.logger.debug "API called: UserApi#user_phone_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2101
291
  end
2102
292
  return data, status_code, headers
2103
293
  end
2104
294
 
2105
- # 微信小程序 - 预登陆
2106
- # 使用微信小程序二维码进行预登陆
295
+ # 手机注册
296
+ # 使用手机号码进行注册
2107
297
  # @param app_key [String]
2108
298
  # @param [Hash] opts the optional parameters
2109
- # @option opts [QRCodePreSignInRequest] :qr_code_pre_sign_in_request 预登陆请求参数
2110
- # @return [Int64ApiResponse]
2111
- def user_qr_code_pre_sign_in(app_key, opts = {})
2112
- data, _status_code, _headers = user_qr_code_pre_sign_in_with_http_info(app_key, opts)
299
+ # @option opts [PhoneSignUpRequest] :phone_sign_up_request 注册请求参数
300
+ # @return [TokenModelApiResponse]
301
+ def user_phone_sign_up(app_key, opts = {})
302
+ data, _status_code, _headers = user_phone_sign_up_with_http_info(app_key, opts)
2113
303
  data
2114
304
  end
2115
305
 
2116
- # 微信小程序 - 预登陆
2117
- # 使用微信小程序二维码进行预登陆
306
+ # 手机注册
307
+ # 使用手机号码进行注册
2118
308
  # @param app_key [String]
2119
309
  # @param [Hash] opts the optional parameters
2120
- # @option opts [QRCodePreSignInRequest] :qr_code_pre_sign_in_request 预登陆请求参数
2121
- # @return [Array<(Int64ApiResponse, Integer, Hash)>] Int64ApiResponse data, response status code and response headers
2122
- def user_qr_code_pre_sign_in_with_http_info(app_key, opts = {})
310
+ # @option opts [PhoneSignUpRequest] :phone_sign_up_request 注册请求参数
311
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
312
+ def user_phone_sign_up_with_http_info(app_key, opts = {})
2123
313
  if @api_client.config.debugging
2124
- @api_client.config.logger.debug 'Calling API: UserApi.user_qr_code_pre_sign_in ...'
314
+ @api_client.config.logger.debug 'Calling API: UserApi.user_phone_sign_up ...'
2125
315
  end
2126
316
  # verify the required parameter 'app_key' is set
2127
317
  if @api_client.config.client_side_validation && app_key.nil?
2128
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_qr_code_pre_sign_in"
318
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_phone_sign_up"
2129
319
  end
2130
320
  # resource path
2131
- local_var_path = '/User/{appKey}/QRCodePreSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
321
+ local_var_path = '/User/{appKey}/PhoneSignUp'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2132
322
 
2133
323
  # query parameters
2134
324
  query_params = opts[:query_params] || {}
@@ -2147,16 +337,16 @@ module ZSGFClient
2147
337
  form_params = opts[:form_params] || {}
2148
338
 
2149
339
  # http body (model)
2150
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'qr_code_pre_sign_in_request'])
340
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'phone_sign_up_request'])
2151
341
 
2152
342
  # return_type
2153
- return_type = opts[:debug_return_type] || 'Int64ApiResponse'
343
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
2154
344
 
2155
345
  # auth_names
2156
346
  auth_names = opts[:debug_auth_names] || ['Bearer']
2157
347
 
2158
348
  new_options = opts.merge(
2159
- :operation => :"UserApi.user_qr_code_pre_sign_in",
349
+ :operation => :"UserApi.user_phone_sign_up",
2160
350
  :header_params => header_params,
2161
351
  :query_params => query_params,
2162
352
  :form_params => form_params,
@@ -2167,38 +357,36 @@ module ZSGFClient
2167
357
 
2168
358
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2169
359
  if @api_client.config.debugging
2170
- @api_client.config.logger.debug "API called: UserApi#user_qr_code_pre_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
360
+ @api_client.config.logger.debug "API called: UserApi#user_phone_sign_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2171
361
  end
2172
362
  return data, status_code, headers
2173
363
  end
2174
364
 
2175
- # 微信小程序 - 扫码
2176
- # 使用微信小程序二维码进行扫码
365
+ # 获取个人资料
366
+ # 获取当前用户的个人资料
2177
367
  # @param app_key [String]
2178
368
  # @param [Hash] opts the optional parameters
2179
- # @option opts [QRCodeScanRequest] :qr_code_scan_request 扫码请求参数
2180
- # @return [UserQRCodeScanResultApiResponse]
2181
- def user_qr_code_scan(app_key, opts = {})
2182
- data, _status_code, _headers = user_qr_code_scan_with_http_info(app_key, opts)
369
+ # @return [UserProfileResultApiResponse]
370
+ def user_profile(app_key, opts = {})
371
+ data, _status_code, _headers = user_profile_with_http_info(app_key, opts)
2183
372
  data
2184
373
  end
2185
374
 
2186
- # 微信小程序 - 扫码
2187
- # 使用微信小程序二维码进行扫码
375
+ # 获取个人资料
376
+ # 获取当前用户的个人资料
2188
377
  # @param app_key [String]
2189
378
  # @param [Hash] opts the optional parameters
2190
- # @option opts [QRCodeScanRequest] :qr_code_scan_request 扫码请求参数
2191
- # @return [Array<(UserQRCodeScanResultApiResponse, Integer, Hash)>] UserQRCodeScanResultApiResponse data, response status code and response headers
2192
- def user_qr_code_scan_with_http_info(app_key, opts = {})
379
+ # @return [Array<(UserProfileResultApiResponse, Integer, Hash)>] UserProfileResultApiResponse data, response status code and response headers
380
+ def user_profile_with_http_info(app_key, opts = {})
2193
381
  if @api_client.config.debugging
2194
- @api_client.config.logger.debug 'Calling API: UserApi.user_qr_code_scan ...'
382
+ @api_client.config.logger.debug 'Calling API: UserApi.user_profile ...'
2195
383
  end
2196
384
  # verify the required parameter 'app_key' is set
2197
385
  if @api_client.config.client_side_validation && app_key.nil?
2198
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_qr_code_scan"
386
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_profile"
2199
387
  end
2200
388
  # resource path
2201
- local_var_path = '/User/{appKey}/QRCodeScan'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
389
+ local_var_path = '/User/{appKey}/Profile'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2202
390
 
2203
391
  # query parameters
2204
392
  query_params = opts[:query_params] || {}
@@ -2207,26 +395,21 @@ module ZSGFClient
2207
395
  header_params = opts[:header_params] || {}
2208
396
  # HTTP header 'Accept' (if needed)
2209
397
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2210
- # HTTP header 'Content-Type'
2211
- content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2212
- if !content_type.nil?
2213
- header_params['Content-Type'] = content_type
2214
- end
2215
398
 
2216
399
  # form parameters
2217
400
  form_params = opts[:form_params] || {}
2218
401
 
2219
402
  # http body (model)
2220
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'qr_code_scan_request'])
403
+ post_body = opts[:debug_body]
2221
404
 
2222
405
  # return_type
2223
- return_type = opts[:debug_return_type] || 'UserQRCodeScanResultApiResponse'
406
+ return_type = opts[:debug_return_type] || 'UserProfileResultApiResponse'
2224
407
 
2225
408
  # auth_names
2226
409
  auth_names = opts[:debug_auth_names] || ['Bearer']
2227
410
 
2228
411
  new_options = opts.merge(
2229
- :operation => :"UserApi.user_qr_code_scan",
412
+ :operation => :"UserApi.user_profile",
2230
413
  :header_params => header_params,
2231
414
  :query_params => query_params,
2232
415
  :form_params => form_params,
@@ -2235,40 +418,40 @@ module ZSGFClient
2235
418
  :return_type => return_type
2236
419
  )
2237
420
 
2238
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
421
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2239
422
  if @api_client.config.debugging
2240
- @api_client.config.logger.debug "API called: UserApi#user_qr_code_scan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
423
+ @api_client.config.logger.debug "API called: UserApi#user_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2241
424
  end
2242
425
  return data, status_code, headers
2243
426
  end
2244
427
 
2245
- # 微信小程序 - 网页登录
2246
- # 使用微信小程序二维码进行网页登录
428
+ # 重置邮箱
429
+ # 通过邮箱验证码重置邮箱
2247
430
  # @param app_key [String]
2248
431
  # @param [Hash] opts the optional parameters
2249
- # @option opts [QRCodeSignInRequest] :qr_code_sign_in_request 登录请求参数
2250
- # @return [TokenModelApiResponse]
2251
- def user_qr_code_sign_in(app_key, opts = {})
2252
- data, _status_code, _headers = user_qr_code_sign_in_with_http_info(app_key, opts)
432
+ # @option opts [AppUserResetEmailRequest] :app_user_reset_email_request 重置邮箱的请求参数
433
+ # @return [BooleanApiResponse]
434
+ def user_reset_email(app_key, opts = {})
435
+ data, _status_code, _headers = user_reset_email_with_http_info(app_key, opts)
2253
436
  data
2254
437
  end
2255
438
 
2256
- # 微信小程序 - 网页登录
2257
- # 使用微信小程序二维码进行网页登录
439
+ # 重置邮箱
440
+ # 通过邮箱验证码重置邮箱
2258
441
  # @param app_key [String]
2259
442
  # @param [Hash] opts the optional parameters
2260
- # @option opts [QRCodeSignInRequest] :qr_code_sign_in_request 登录请求参数
2261
- # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
2262
- def user_qr_code_sign_in_with_http_info(app_key, opts = {})
443
+ # @option opts [AppUserResetEmailRequest] :app_user_reset_email_request 重置邮箱的请求参数
444
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
445
+ def user_reset_email_with_http_info(app_key, opts = {})
2263
446
  if @api_client.config.debugging
2264
- @api_client.config.logger.debug 'Calling API: UserApi.user_qr_code_sign_in ...'
447
+ @api_client.config.logger.debug 'Calling API: UserApi.user_reset_email ...'
2265
448
  end
2266
449
  # verify the required parameter 'app_key' is set
2267
450
  if @api_client.config.client_side_validation && app_key.nil?
2268
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_qr_code_sign_in"
451
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_reset_email"
2269
452
  end
2270
453
  # resource path
2271
- local_var_path = '/User/{appKey}/QRCodeSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
454
+ local_var_path = '/User/{appKey}/ResetEmail'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2272
455
 
2273
456
  # query parameters
2274
457
  query_params = opts[:query_params] || {}
@@ -2287,16 +470,16 @@ module ZSGFClient
2287
470
  form_params = opts[:form_params] || {}
2288
471
 
2289
472
  # http body (model)
2290
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'qr_code_sign_in_request'])
473
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'app_user_reset_email_request'])
2291
474
 
2292
475
  # return_type
2293
- return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
476
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
2294
477
 
2295
478
  # auth_names
2296
479
  auth_names = opts[:debug_auth_names] || ['Bearer']
2297
480
 
2298
481
  new_options = opts.merge(
2299
- :operation => :"UserApi.user_qr_code_sign_in",
482
+ :operation => :"UserApi.user_reset_email",
2300
483
  :header_params => header_params,
2301
484
  :query_params => query_params,
2302
485
  :form_params => form_params,
@@ -2305,40 +488,40 @@ module ZSGFClient
2305
488
  :return_type => return_type
2306
489
  )
2307
490
 
2308
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
491
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2309
492
  if @api_client.config.debugging
2310
- @api_client.config.logger.debug "API called: UserApi#user_qr_code_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
493
+ @api_client.config.logger.debug "API called: UserApi#user_reset_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2311
494
  end
2312
495
  return data, status_code, headers
2313
496
  end
2314
497
 
2315
- # 微信小程序 - 注册
2316
- # 使用微信小程序二维码进行注册
498
+ # 重置手机号
499
+ # 通过手机号验证码重置手机号
2317
500
  # @param app_key [String]
2318
501
  # @param [Hash] opts the optional parameters
2319
- # @option opts [QRCodeSignUpRequest] :qr_code_sign_up_request 注册请求参数
2320
- # @return [TokenModelApiResponse]
2321
- def user_qr_code_sign_up(app_key, opts = {})
2322
- data, _status_code, _headers = user_qr_code_sign_up_with_http_info(app_key, opts)
502
+ # @option opts [AppUserResetPhoneRequest] :app_user_reset_phone_request 重置手机号的请求参数
503
+ # @return [BooleanApiResponse]
504
+ def user_reset_phone(app_key, opts = {})
505
+ data, _status_code, _headers = user_reset_phone_with_http_info(app_key, opts)
2323
506
  data
2324
507
  end
2325
508
 
2326
- # 微信小程序 - 注册
2327
- # 使用微信小程序二维码进行注册
509
+ # 重置手机号
510
+ # 通过手机号验证码重置手机号
2328
511
  # @param app_key [String]
2329
512
  # @param [Hash] opts the optional parameters
2330
- # @option opts [QRCodeSignUpRequest] :qr_code_sign_up_request 注册请求参数
2331
- # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
2332
- def user_qr_code_sign_up_with_http_info(app_key, opts = {})
513
+ # @option opts [AppUserResetPhoneRequest] :app_user_reset_phone_request 重置手机号的请求参数
514
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
515
+ def user_reset_phone_with_http_info(app_key, opts = {})
2333
516
  if @api_client.config.debugging
2334
- @api_client.config.logger.debug 'Calling API: UserApi.user_qr_code_sign_up ...'
517
+ @api_client.config.logger.debug 'Calling API: UserApi.user_reset_phone ...'
2335
518
  end
2336
519
  # verify the required parameter 'app_key' is set
2337
520
  if @api_client.config.client_side_validation && app_key.nil?
2338
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_qr_code_sign_up"
521
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_reset_phone"
2339
522
  end
2340
523
  # resource path
2341
- local_var_path = '/User/{appKey}/QRCodeSignUp'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
524
+ local_var_path = '/User/{appKey}/ResetPhone'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2342
525
 
2343
526
  # query parameters
2344
527
  query_params = opts[:query_params] || {}
@@ -2357,16 +540,16 @@ module ZSGFClient
2357
540
  form_params = opts[:form_params] || {}
2358
541
 
2359
542
  # http body (model)
2360
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'qr_code_sign_up_request'])
543
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'app_user_reset_phone_request'])
2361
544
 
2362
545
  # return_type
2363
- return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
546
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
2364
547
 
2365
548
  # auth_names
2366
549
  auth_names = opts[:debug_auth_names] || ['Bearer']
2367
550
 
2368
551
  new_options = opts.merge(
2369
- :operation => :"UserApi.user_qr_code_sign_up",
552
+ :operation => :"UserApi.user_reset_phone",
2370
553
  :header_params => header_params,
2371
554
  :query_params => query_params,
2372
555
  :form_params => form_params,
@@ -2375,9 +558,9 @@ module ZSGFClient
2375
558
  :return_type => return_type
2376
559
  )
2377
560
 
2378
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
561
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2379
562
  if @api_client.config.debugging
2380
- @api_client.config.logger.debug "API called: UserApi#user_qr_code_sign_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
563
+ @api_client.config.logger.debug "API called: UserApi#user_reset_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2381
564
  end
2382
565
  return data, status_code, headers
2383
566
  end
@@ -2592,7 +775,7 @@ module ZSGFClient
2592
775
  return data, status_code, headers
2593
776
  end
2594
777
 
2595
- # 账号密码 登录
778
+ # 密码登录
2596
779
  # 使用账号密码进行登录
2597
780
  # @param app_key [String]
2598
781
  # @param [Hash] opts the optional parameters
@@ -2603,7 +786,7 @@ module ZSGFClient
2603
786
  data
2604
787
  end
2605
788
 
2606
- # 账号密码 登录
789
+ # 密码登录
2607
790
  # 使用账号密码进行登录
2608
791
  # @param app_key [String]
2609
792
  # @param [Hash] opts the optional parameters
@@ -2662,7 +845,7 @@ module ZSGFClient
2662
845
  return data, status_code, headers
2663
846
  end
2664
847
 
2665
- # 账号密码 注册
848
+ # 账号注册
2666
849
  # 使用账号密码进行注册
2667
850
  # @param app_key [String]
2668
851
  # @param [Hash] opts the optional parameters
@@ -2673,7 +856,7 @@ module ZSGFClient
2673
856
  data
2674
857
  end
2675
858
 
2676
- # 账号密码 注册
859
+ # 账号注册
2677
860
  # 使用账号密码进行注册
2678
861
  # @param app_key [String]
2679
862
  # @param [Hash] opts the optional parameters
@@ -2732,8 +915,8 @@ module ZSGFClient
2732
915
  return data, status_code, headers
2733
916
  end
2734
917
 
2735
- # 双因素验证
2736
- # 获取双因素验证的设置信息
918
+ # 二次验证
919
+ # 获取当前用户在指定应用下启用二次验证(2FA)所需的设置信息,主要包括二维码链接和手动密钥,用户可以将其录入在 Google Authenticator 等 TOTP 应用中,用于后续动态验证码验证。
2737
920
  # @param app_key [String]
2738
921
  # @param [Hash] opts the optional parameters
2739
922
  # @return [SetupCodeApiResponse]
@@ -2742,8 +925,8 @@ module ZSGFClient
2742
925
  data
2743
926
  end
2744
927
 
2745
- # 双因素验证
2746
- # 获取双因素验证的设置信息
928
+ # 二次验证
929
+ # 获取当前用户在指定应用下启用二次验证(2FA)所需的设置信息,主要包括二维码链接和手动密钥,用户可以将其录入在 Google Authenticator 等 TOTP 应用中,用于后续动态验证码验证。
2747
930
  # @param app_key [String]
2748
931
  # @param [Hash] opts the optional parameters
2749
932
  # @return [Array<(SetupCodeApiResponse, Integer, Hash)>] SetupCodeApiResponse data, response status code and response headers
@@ -2795,75 +978,6 @@ module ZSGFClient
2795
978
  return data, status_code, headers
2796
979
  end
2797
980
 
2798
- # 取消关注
2799
- # 取消关注指定用户
2800
- # @param user_id [Integer] 要取消关注的用户ID
2801
- # @param app_key [String]
2802
- # @param [Hash] opts the optional parameters
2803
- # @return [BooleanApiResponse]
2804
- def user_unfollow_user(user_id, app_key, opts = {})
2805
- data, _status_code, _headers = user_unfollow_user_with_http_info(user_id, app_key, opts)
2806
- data
2807
- end
2808
-
2809
- # 取消关注
2810
- # 取消关注指定用户
2811
- # @param user_id [Integer] 要取消关注的用户ID
2812
- # @param app_key [String]
2813
- # @param [Hash] opts the optional parameters
2814
- # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
2815
- def user_unfollow_user_with_http_info(user_id, app_key, opts = {})
2816
- if @api_client.config.debugging
2817
- @api_client.config.logger.debug 'Calling API: UserApi.user_unfollow_user ...'
2818
- end
2819
- # verify the required parameter 'user_id' is set
2820
- if @api_client.config.client_side_validation && user_id.nil?
2821
- fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.user_unfollow_user"
2822
- end
2823
- # verify the required parameter 'app_key' is set
2824
- if @api_client.config.client_side_validation && app_key.nil?
2825
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_unfollow_user"
2826
- end
2827
- # resource path
2828
- local_var_path = '/User/{appKey}/Follower/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2829
-
2830
- # query parameters
2831
- query_params = opts[:query_params] || {}
2832
-
2833
- # header parameters
2834
- header_params = opts[:header_params] || {}
2835
- # HTTP header 'Accept' (if needed)
2836
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2837
-
2838
- # form parameters
2839
- form_params = opts[:form_params] || {}
2840
-
2841
- # http body (model)
2842
- post_body = opts[:debug_body]
2843
-
2844
- # return_type
2845
- return_type = opts[:debug_return_type] || 'BooleanApiResponse'
2846
-
2847
- # auth_names
2848
- auth_names = opts[:debug_auth_names] || ['Bearer']
2849
-
2850
- new_options = opts.merge(
2851
- :operation => :"UserApi.user_unfollow_user",
2852
- :header_params => header_params,
2853
- :query_params => query_params,
2854
- :form_params => form_params,
2855
- :body => post_body,
2856
- :auth_names => auth_names,
2857
- :return_type => return_type
2858
- )
2859
-
2860
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2861
- if @api_client.config.debugging
2862
- @api_client.config.logger.debug "API called: UserApi#user_unfollow_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2863
- end
2864
- return data, status_code, headers
2865
- end
2866
-
2867
981
  # UnionID登录
2868
982
  # 使用UnionID进行登录
2869
983
  # @param app_key [String]
@@ -3073,92 +1187,5 @@ module ZSGFClient
3073
1187
  end
3074
1188
  return data, status_code, headers
3075
1189
  end
3076
-
3077
- # 获取用户列表
3078
- # 根据条件获取用户列表
3079
- # @param app_key [String]
3080
- # @param [Hash] opts the optional parameters
3081
- # @option opts [String] :user_name 用户名
3082
- # @option opts [String] :email 邮箱
3083
- # @option opts [String] :phone 电话
3084
- # @option opts [String] :platform 平台
3085
- # @option opts [String] :union_id 联合ID
3086
- # @option opts [String] :role 角色
3087
- # @option opts [Integer] :skip 跳过的记录数
3088
- # @option opts [Integer] :take 获取的记录数
3089
- # @return [UserListResultApiResponse]
3090
- def users(app_key, opts = {})
3091
- data, _status_code, _headers = users_with_http_info(app_key, opts)
3092
- data
3093
- end
3094
-
3095
- # 获取用户列表
3096
- # 根据条件获取用户列表
3097
- # @param app_key [String]
3098
- # @param [Hash] opts the optional parameters
3099
- # @option opts [String] :user_name 用户名
3100
- # @option opts [String] :email 邮箱
3101
- # @option opts [String] :phone 电话
3102
- # @option opts [String] :platform 平台
3103
- # @option opts [String] :union_id 联合ID
3104
- # @option opts [String] :role 角色
3105
- # @option opts [Integer] :skip 跳过的记录数
3106
- # @option opts [Integer] :take 获取的记录数
3107
- # @return [Array<(UserListResultApiResponse, Integer, Hash)>] UserListResultApiResponse data, response status code and response headers
3108
- def users_with_http_info(app_key, opts = {})
3109
- if @api_client.config.debugging
3110
- @api_client.config.logger.debug 'Calling API: UserApi.users ...'
3111
- end
3112
- # verify the required parameter 'app_key' is set
3113
- if @api_client.config.client_side_validation && app_key.nil?
3114
- fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.users"
3115
- end
3116
- # resource path
3117
- local_var_path = '/User/{appKey}'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
3118
-
3119
- # query parameters
3120
- query_params = opts[:query_params] || {}
3121
- query_params[:'userName'] = opts[:'user_name'] if !opts[:'user_name'].nil?
3122
- query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
3123
- query_params[:'phone'] = opts[:'phone'] if !opts[:'phone'].nil?
3124
- query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
3125
- query_params[:'unionId'] = opts[:'union_id'] if !opts[:'union_id'].nil?
3126
- query_params[:'role'] = opts[:'role'] if !opts[:'role'].nil?
3127
- query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
3128
- query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
3129
-
3130
- # header parameters
3131
- header_params = opts[:header_params] || {}
3132
- # HTTP header 'Accept' (if needed)
3133
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3134
-
3135
- # form parameters
3136
- form_params = opts[:form_params] || {}
3137
-
3138
- # http body (model)
3139
- post_body = opts[:debug_body]
3140
-
3141
- # return_type
3142
- return_type = opts[:debug_return_type] || 'UserListResultApiResponse'
3143
-
3144
- # auth_names
3145
- auth_names = opts[:debug_auth_names] || ['Bearer']
3146
-
3147
- new_options = opts.merge(
3148
- :operation => :"UserApi.users",
3149
- :header_params => header_params,
3150
- :query_params => query_params,
3151
- :form_params => form_params,
3152
- :body => post_body,
3153
- :auth_names => auth_names,
3154
- :return_type => return_type
3155
- )
3156
-
3157
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3158
- if @api_client.config.debugging
3159
- @api_client.config.logger.debug "API called: UserApi#users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3160
- end
3161
- return data, status_code, headers
3162
- end
3163
1190
  end
3164
1191
  end