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