zsgf_client 1.0.24 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (588) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AccessTokenApi.md +15 -15
  3. data/docs/AccessTokenPutRequest.md +2 -2
  4. data/docs/AlipayApi.md +25 -25
  5. data/docs/AppApi.md +1 -655
  6. data/docs/AppUserResetEmailRequest.md +20 -0
  7. data/docs/AppUserResetPhoneRequest.md +20 -0
  8. data/docs/AppUserResetPwdRequest.md +4 -8
  9. data/docs/CommonFriendModel.md +3 -3
  10. data/docs/DingTalkApi.md +1 -1
  11. data/docs/EmailSignInRequest.md +3 -3
  12. data/docs/EmailSignUpRequest.md +5 -5
  13. data/docs/ExternalAccountApi.md +373 -0
  14. data/docs/{OAuthAccountBindRequest.md → ExternalAccountBindRequest.md} +2 -2
  15. data/docs/{OAuthAccountPutBindRequest.md → ExternalAccountPutRequest.md} +2 -2
  16. data/docs/ExternalAccountSignInRequest.md +22 -0
  17. data/docs/FileApi.md +19 -19
  18. data/docs/FollowerModel.md +12 -12
  19. data/docs/FollowerPutModel.md +6 -6
  20. data/docs/GeoLocation.md +62 -0
  21. data/docs/GeoLocationModel.md +4 -4
  22. data/docs/GeoLocationResponseModel.md +4 -4
  23. data/docs/GetUserProfileResult.md +24 -0
  24. data/docs/{CurrencyExchangeRateApiResponse.md → GetUserProfileResultApiResponse.md} +3 -3
  25. data/docs/MySqlGeometry.md +26 -0
  26. data/docs/OAuthApi.md +17 -17
  27. data/docs/OrderApi.md +1 -1
  28. data/docs/PhoneSignInRequest.md +3 -3
  29. data/docs/PhoneSignUpRequest.md +7 -7
  30. data/docs/QRCodePreSignInRequest.md +3 -3
  31. data/docs/QRCodeScanRequest.md +1 -1
  32. data/docs/QRCodeSignInRequest.md +1 -1
  33. data/docs/QRCodeSignUpRequest.md +8 -8
  34. data/docs/RecommendFriend.md +21 -11
  35. data/docs/SendEmailCodeRequest.md +2 -2
  36. data/docs/SendSMSCodeRequest.md +2 -2
  37. data/docs/SignInRequest.md +3 -3
  38. data/docs/SignUpRequest.md +8 -8
  39. data/docs/StorageApi.md +69 -819
  40. data/docs/TapPayInfo.md +5 -1
  41. data/docs/UnionIDSignInRequest.md +3 -3
  42. data/docs/UnionIDSignUpRequest.md +10 -10
  43. data/docs/UpdateProfileRequest.md +27 -15
  44. data/docs/UserApi.md +145 -2195
  45. data/docs/UserCurrencyApi.md +1 -1
  46. data/docs/UserFriendsApi.md +795 -0
  47. data/docs/UserFriendsNearByResult.md +3 -3
  48. data/docs/UserLocationApi.md +387 -0
  49. data/docs/UserProfileResult.md +2 -28
  50. data/docs/WechatApi.md +425 -55
  51. data/lib/zsgf_client/api/access_token_api.rb +15 -15
  52. data/lib/zsgf_client/api/alipay_api.rb +13 -13
  53. data/lib/zsgf_client/api/app_api.rb +1 -588
  54. data/lib/zsgf_client/api/ding_talk_api.rb +1 -1
  55. data/lib/zsgf_client/api/{authorize_policy_api.rb → external_account_api.rb} +108 -113
  56. data/lib/zsgf_client/api/file_api.rb +14 -14
  57. data/lib/zsgf_client/api/o_auth_api.rb +9 -9
  58. data/lib/zsgf_client/api/order_api.rb +1 -1
  59. data/lib/zsgf_client/api/storage_api.rb +113 -885
  60. data/lib/zsgf_client/api/user_api.rb +153 -2126
  61. data/lib/zsgf_client/api/user_currency_api.rb +1 -1
  62. data/lib/zsgf_client/api/user_friends_api.rb +787 -0
  63. data/lib/zsgf_client/api/{user_setting_api.rb → user_location_api.rb} +106 -94
  64. data/lib/zsgf_client/api/wechat_api.rb +391 -41
  65. data/lib/zsgf_client/api_client.rb +1 -1
  66. data/lib/zsgf_client/api_error.rb +1 -1
  67. data/lib/zsgf_client/configuration.rb +4 -4
  68. data/lib/zsgf_client/models/access_token_list_result.rb +1 -1
  69. data/lib/zsgf_client/models/access_token_list_result_api_response.rb +1 -1
  70. data/lib/zsgf_client/models/access_token_post_request.rb +1 -1
  71. data/lib/zsgf_client/models/access_token_put_request.rb +4 -28
  72. data/lib/zsgf_client/models/alipay_create_order_page_pay_request.rb +1 -1
  73. data/lib/zsgf_client/models/alipay_create_order_request.rb +1 -1
  74. data/lib/zsgf_client/models/alipay_create_order_wap_pay_request.rb +1 -1
  75. data/lib/zsgf_client/models/alipay_trade_query_response.rb +1 -1
  76. data/lib/zsgf_client/models/alipay_trade_query_response_api_response.rb +1 -1
  77. data/lib/zsgf_client/models/alipay_trade_refund_response.rb +1 -1
  78. data/lib/zsgf_client/models/alipay_trade_refund_response_api_response.rb +1 -1
  79. data/lib/zsgf_client/models/app_info_item.rb +1 -1
  80. data/lib/zsgf_client/models/app_info_result.rb +1 -1
  81. data/lib/zsgf_client/models/app_info_result_api_response.rb +1 -1
  82. data/lib/zsgf_client/models/app_property.rb +1 -1
  83. data/lib/zsgf_client/models/app_user_consent_model.rb +1 -1
  84. data/lib/zsgf_client/models/app_user_consent_model_list_api_response.rb +1 -1
  85. data/lib/zsgf_client/models/{app_list_result_api_response.rb → app_user_reset_email_request.rb} +56 -32
  86. data/lib/zsgf_client/models/{app_post_result_api_response.rb → app_user_reset_phone_request.rb} +56 -32
  87. data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +53 -71
  88. data/lib/zsgf_client/models/authorize_result.rb +1 -1
  89. data/lib/zsgf_client/models/authorize_result_api_response.rb +1 -1
  90. data/lib/zsgf_client/models/bk_agent_resp_info.rb +1 -1
  91. data/lib/zsgf_client/models/boolean_api_response.rb +1 -1
  92. data/lib/zsgf_client/models/charge_info.rb +1 -1
  93. data/lib/zsgf_client/models/common_friend_model.rb +4 -1
  94. data/lib/zsgf_client/models/contribute_detail.rb +1 -1
  95. data/lib/zsgf_client/models/create_order_request.rb +1 -1
  96. data/lib/zsgf_client/models/create_order_result.rb +1 -1
  97. data/lib/zsgf_client/models/create_order_result_api_response.rb +1 -1
  98. data/lib/zsgf_client/models/currency_consume_request.rb +1 -1
  99. data/lib/zsgf_client/models/currency_transaction.rb +1 -1
  100. data/lib/zsgf_client/models/directory_item.rb +1 -1
  101. data/lib/zsgf_client/models/email_sign_in_request.rb +39 -2
  102. data/lib/zsgf_client/models/email_sign_up_request.rb +31 -9
  103. data/lib/zsgf_client/models/enterprise_pay_info.rb +1 -1
  104. data/lib/zsgf_client/models/exchange_currency_request.rb +1 -1
  105. data/lib/zsgf_client/models/{o_auth_account_bind_request.rb → external_account_bind_request.rb} +4 -4
  106. data/lib/zsgf_client/models/{o_auth_account_put_bind_request.rb → external_account_put_request.rb} +4 -4
  107. data/lib/zsgf_client/models/{o_auth_account_sign_in_request.rb → external_account_sign_in_request.rb} +82 -5
  108. data/lib/zsgf_client/models/file_item.rb +1 -1
  109. data/lib/zsgf_client/models/file_list_result.rb +1 -1
  110. data/lib/zsgf_client/models/file_list_result_api_response.rb +1 -1
  111. data/lib/zsgf_client/models/follower_model.rb +13 -1
  112. data/lib/zsgf_client/models/follower_put_model.rb +7 -1
  113. data/lib/zsgf_client/models/fulfillment_detail.rb +1 -1
  114. data/lib/zsgf_client/models/geo_location.rb +750 -0
  115. data/lib/zsgf_client/models/geo_location_model.rb +263 -13
  116. data/lib/zsgf_client/models/geo_location_model_api_response.rb +1 -1
  117. data/lib/zsgf_client/models/geo_location_response_model.rb +263 -13
  118. data/lib/zsgf_client/models/{system_file_list_result.rb → get_user_profile_result.rb} +35 -28
  119. data/lib/zsgf_client/models/{currency_exchange_rate_api_response.rb → get_user_profile_result_api_response.rb} +5 -5
  120. data/lib/zsgf_client/models/goods_detail.rb +1 -1
  121. data/lib/zsgf_client/models/grant_request.rb +1 -1
  122. data/lib/zsgf_client/models/grant_result.rb +1 -1
  123. data/lib/zsgf_client/models/grant_result_api_response.rb +1 -1
  124. data/lib/zsgf_client/models/hb_fq_pay_info.rb +1 -1
  125. data/lib/zsgf_client/models/int64_api_response.rb +1 -1
  126. data/lib/zsgf_client/models/intact_charge_info.rb +1 -1
  127. data/lib/zsgf_client/models/{app_post_result.rb → my_sql_geometry.rb} +48 -18
  128. data/lib/zsgf_client/models/object_api_response.rb +1 -1
  129. data/lib/zsgf_client/models/object_list_api_response.rb +1 -1
  130. data/lib/zsgf_client/models/order.rb +1 -1
  131. data/lib/zsgf_client/models/order_api_response.rb +1 -1
  132. data/lib/zsgf_client/models/order_list_result.rb +1 -1
  133. data/lib/zsgf_client/models/order_list_result_api_response.rb +1 -1
  134. data/lib/zsgf_client/models/payment_info_with_id.rb +1 -1
  135. data/lib/zsgf_client/models/phone_sign_in_request.rb +50 -2
  136. data/lib/zsgf_client/models/phone_sign_up_request.rb +30 -25
  137. data/lib/zsgf_client/models/preset_pay_tool_info.rb +1 -1
  138. data/lib/zsgf_client/models/profile_result.rb +1 -1
  139. data/lib/zsgf_client/models/profile_result_api_response.rb +1 -1
  140. data/lib/zsgf_client/models/qr_code_pre_sign_in_request.rb +98 -1
  141. data/lib/zsgf_client/models/qr_code_scan_request.rb +2 -1
  142. data/lib/zsgf_client/models/qr_code_sign_in_request.rb +2 -1
  143. data/lib/zsgf_client/models/qr_code_sign_up_request.rb +39 -34
  144. data/lib/zsgf_client/models/recharge_point_request.rb +1 -1
  145. data/lib/zsgf_client/models/recommend_friend.rb +70 -5
  146. data/lib/zsgf_client/models/refund_charge_info.rb +1 -1
  147. data/lib/zsgf_client/models/refund_sub_fee.rb +1 -1
  148. data/lib/zsgf_client/models/return_page_notify_request.rb +1 -1
  149. data/lib/zsgf_client/models/send_email_code_request.rb +3 -2
  150. data/lib/zsgf_client/models/send_sms_code_request.rb +3 -3
  151. data/lib/zsgf_client/models/setup_code.rb +1 -1
  152. data/lib/zsgf_client/models/setup_code_api_response.rb +1 -1
  153. data/lib/zsgf_client/models/sign_in_request.rb +78 -12
  154. data/lib/zsgf_client/models/sign_up_request.rb +48 -36
  155. data/lib/zsgf_client/models/storage_list_result.rb +1 -1
  156. data/lib/zsgf_client/models/storage_list_result_api_response.rb +1 -1
  157. data/lib/zsgf_client/models/string_api_response.rb +1 -1
  158. data/lib/zsgf_client/models/sub_fee.rb +1 -1
  159. data/lib/zsgf_client/models/tap_pay_info.rb +26 -6
  160. data/lib/zsgf_client/models/token_model.rb +1 -1
  161. data/lib/zsgf_client/models/token_model_api_response.rb +1 -1
  162. data/lib/zsgf_client/models/trade_fund_bill.rb +1 -1
  163. data/lib/zsgf_client/models/trade_settle_detail.rb +1 -1
  164. data/lib/zsgf_client/models/trade_settle_info.rb +1 -1
  165. data/lib/zsgf_client/models/union_id_sign_in_request.rb +79 -2
  166. data/lib/zsgf_client/models/union_id_sign_up_request.rb +93 -46
  167. data/lib/zsgf_client/models/update_profile_request.rb +100 -25
  168. data/lib/zsgf_client/models/user.rb +1 -1
  169. data/lib/zsgf_client/models/user_access_token.rb +1 -1
  170. data/lib/zsgf_client/models/user_common_interests_result.rb +1 -1
  171. data/lib/zsgf_client/models/user_common_interests_result_api_response.rb +1 -1
  172. data/lib/zsgf_client/models/user_currency.rb +1 -1
  173. data/lib/zsgf_client/models/user_currency_currency_trans_result.rb +1 -1
  174. data/lib/zsgf_client/models/user_currency_currency_trans_result_api_response.rb +1 -1
  175. data/lib/zsgf_client/models/user_currency_list_api_response.rb +1 -1
  176. data/lib/zsgf_client/models/user_followers_result.rb +1 -1
  177. data/lib/zsgf_client/models/user_followers_result_api_response.rb +1 -1
  178. data/lib/zsgf_client/models/user_friends_near_by_result.rb +11 -8
  179. data/lib/zsgf_client/models/user_friends_near_by_result_api_response.rb +1 -1
  180. data/lib/zsgf_client/models/user_location_post_result.rb +1 -1
  181. data/lib/zsgf_client/models/user_location_post_result_api_response.rb +1 -1
  182. data/lib/zsgf_client/models/user_locations_result.rb +1 -1
  183. data/lib/zsgf_client/models/user_locations_result_api_response.rb +1 -1
  184. data/lib/zsgf_client/models/user_logins.rb +1 -1
  185. data/lib/zsgf_client/models/user_logins_list_api_response.rb +1 -1
  186. data/lib/zsgf_client/models/user_mutual_followers_result.rb +1 -1
  187. data/lib/zsgf_client/models/user_mutual_followers_result_api_response.rb +1 -1
  188. data/lib/zsgf_client/models/user_mutual_followings_result.rb +1 -1
  189. data/lib/zsgf_client/models/user_mutual_followings_result_api_response.rb +1 -1
  190. data/lib/zsgf_client/models/user_profile_result.rb +8 -134
  191. data/lib/zsgf_client/models/user_profile_result_api_response.rb +1 -1
  192. data/lib/zsgf_client/models/user_qr_code_scan_result.rb +1 -1
  193. data/lib/zsgf_client/models/user_qr_code_scan_result_api_response.rb +1 -1
  194. data/lib/zsgf_client/models/voucher_detail.rb +1 -1
  195. data/lib/zsgf_client/models/wechat_js_config_result.rb +1 -1
  196. data/lib/zsgf_client/models/wechat_js_config_result_api_response.rb +1 -1
  197. data/lib/zsgf_client/version.rb +2 -2
  198. data/lib/zsgf_client.rb +13 -90
  199. data/spec/api/access_token_api_spec.rb +8 -8
  200. data/spec/api/alipay_api_spec.rb +7 -7
  201. data/spec/api/app_api_spec.rb +1 -115
  202. data/spec/api/ding_talk_api_spec.rb +1 -1
  203. data/spec/api/{user_setting_api_spec.rb → external_account_api_spec.rb} +35 -38
  204. data/spec/api/file_api_spec.rb +7 -7
  205. data/spec/api/o_auth_api_spec.rb +5 -5
  206. data/spec/api/order_api_spec.rb +1 -1
  207. data/spec/api/storage_api_spec.rb +2 -141
  208. data/spec/api/user_api_spec.rb +20 -406
  209. data/spec/api/user_currency_api_spec.rb +1 -1
  210. data/spec/api/user_friends_api_spec.rb +192 -0
  211. data/spec/api/user_location_api_spec.rb +107 -0
  212. data/spec/api/wechat_api_spec.rb +82 -17
  213. data/spec/models/access_token_list_result_api_response_spec.rb +1 -1
  214. data/spec/models/access_token_list_result_spec.rb +1 -1
  215. data/spec/models/access_token_post_request_spec.rb +1 -1
  216. data/spec/models/access_token_put_request_spec.rb +1 -1
  217. data/spec/models/alipay_create_order_page_pay_request_spec.rb +1 -1
  218. data/spec/models/alipay_create_order_request_spec.rb +1 -1
  219. data/spec/models/alipay_create_order_wap_pay_request_spec.rb +1 -1
  220. data/spec/models/alipay_trade_query_response_api_response_spec.rb +1 -1
  221. data/spec/models/alipay_trade_query_response_spec.rb +1 -1
  222. data/spec/models/alipay_trade_refund_response_api_response_spec.rb +1 -1
  223. data/spec/models/alipay_trade_refund_response_spec.rb +1 -1
  224. data/spec/models/app_info_item_spec.rb +1 -1
  225. data/spec/models/app_info_result_api_response_spec.rb +1 -1
  226. data/spec/models/app_info_result_spec.rb +1 -1
  227. data/spec/models/app_property_spec.rb +1 -1
  228. data/spec/models/app_user_consent_model_list_api_response_spec.rb +1 -1
  229. data/spec/models/app_user_consent_model_spec.rb +1 -1
  230. data/spec/models/{app_post_result_spec.rb → app_user_reset_email_request_spec.rb} +9 -9
  231. data/spec/models/{post_index_request_spec.rb → app_user_reset_phone_request_spec.rb} +9 -9
  232. data/spec/models/app_user_reset_pwd_request_spec.rb +3 -15
  233. data/spec/models/authorize_result_api_response_spec.rb +1 -1
  234. data/spec/models/authorize_result_spec.rb +1 -1
  235. data/spec/models/bk_agent_resp_info_spec.rb +1 -1
  236. data/spec/models/boolean_api_response_spec.rb +1 -1
  237. data/spec/models/charge_info_spec.rb +1 -1
  238. data/spec/models/common_friend_model_spec.rb +1 -1
  239. data/spec/models/contribute_detail_spec.rb +1 -1
  240. data/spec/models/create_order_request_spec.rb +1 -1
  241. data/spec/models/create_order_result_api_response_spec.rb +1 -1
  242. data/spec/models/create_order_result_spec.rb +1 -1
  243. data/spec/models/currency_consume_request_spec.rb +1 -1
  244. data/spec/models/currency_transaction_spec.rb +1 -1
  245. data/spec/models/directory_item_spec.rb +1 -1
  246. data/spec/models/email_sign_in_request_spec.rb +1 -1
  247. data/spec/models/email_sign_up_request_spec.rb +1 -1
  248. data/spec/models/enterprise_pay_info_spec.rb +1 -1
  249. data/spec/models/exchange_currency_request_spec.rb +1 -1
  250. data/spec/models/{o_auth_account_bind_request_spec.rb → external_account_bind_request_spec.rb} +7 -7
  251. data/spec/models/{o_auth_account_put_bind_request_spec.rb → external_account_put_request_spec.rb} +7 -7
  252. data/spec/models/{o_auth_account_sign_in_request_spec.rb → external_account_sign_in_request_spec.rb} +7 -7
  253. data/spec/models/file_item_spec.rb +1 -1
  254. data/spec/models/file_list_result_api_response_spec.rb +1 -1
  255. data/spec/models/file_list_result_spec.rb +1 -1
  256. data/spec/models/follower_model_spec.rb +1 -1
  257. data/spec/models/follower_put_model_spec.rb +1 -1
  258. data/spec/models/fulfillment_detail_spec.rb +1 -1
  259. data/spec/models/geo_location_model_api_response_spec.rb +1 -1
  260. data/spec/models/geo_location_model_spec.rb +4 -4
  261. data/spec/models/geo_location_response_model_spec.rb +4 -4
  262. data/spec/models/{app_spec.rb → geo_location_spec.rb} +58 -22
  263. data/spec/models/{system_file_list_result_api_response_spec.rb → get_user_profile_result_api_response_spec.rb} +7 -7
  264. data/spec/models/{system_directory_item_spec.rb → get_user_profile_result_spec.rb} +11 -11
  265. data/spec/models/goods_detail_spec.rb +1 -1
  266. data/spec/models/grant_request_spec.rb +1 -1
  267. data/spec/models/grant_result_api_response_spec.rb +1 -1
  268. data/spec/models/grant_result_spec.rb +1 -1
  269. data/spec/models/hb_fq_pay_info_spec.rb +1 -1
  270. data/spec/models/int64_api_response_spec.rb +1 -1
  271. data/spec/models/intact_charge_info_spec.rb +1 -1
  272. data/spec/models/{authorize_policy_spec.rb → my_sql_geometry_spec.rb} +12 -18
  273. data/spec/models/object_api_response_spec.rb +1 -1
  274. data/spec/models/object_list_api_response_spec.rb +1 -1
  275. data/spec/models/order_api_response_spec.rb +1 -1
  276. data/spec/models/order_list_result_api_response_spec.rb +1 -1
  277. data/spec/models/order_list_result_spec.rb +1 -1
  278. data/spec/models/order_spec.rb +1 -1
  279. data/spec/models/payment_info_with_id_spec.rb +1 -1
  280. data/spec/models/phone_sign_in_request_spec.rb +1 -1
  281. data/spec/models/phone_sign_up_request_spec.rb +1 -1
  282. data/spec/models/preset_pay_tool_info_spec.rb +1 -1
  283. data/spec/models/profile_result_api_response_spec.rb +1 -1
  284. data/spec/models/profile_result_spec.rb +1 -1
  285. data/spec/models/qr_code_pre_sign_in_request_spec.rb +1 -1
  286. data/spec/models/qr_code_scan_request_spec.rb +1 -1
  287. data/spec/models/qr_code_sign_in_request_spec.rb +1 -1
  288. data/spec/models/qr_code_sign_up_request_spec.rb +1 -1
  289. data/spec/models/recharge_point_request_spec.rb +1 -1
  290. data/spec/models/recommend_friend_spec.rb +31 -1
  291. data/spec/models/refund_charge_info_spec.rb +1 -1
  292. data/spec/models/refund_sub_fee_spec.rb +1 -1
  293. data/spec/models/return_page_notify_request_spec.rb +1 -1
  294. data/spec/models/send_email_code_request_spec.rb +1 -1
  295. data/spec/models/send_sms_code_request_spec.rb +1 -1
  296. data/spec/models/setup_code_api_response_spec.rb +1 -1
  297. data/spec/models/setup_code_spec.rb +1 -1
  298. data/spec/models/sign_in_request_spec.rb +1 -1
  299. data/spec/models/sign_up_request_spec.rb +1 -1
  300. data/spec/models/storage_list_result_api_response_spec.rb +1 -1
  301. data/spec/models/storage_list_result_spec.rb +1 -1
  302. data/spec/models/string_api_response_spec.rb +1 -1
  303. data/spec/models/sub_fee_spec.rb +1 -1
  304. data/spec/models/tap_pay_info_spec.rb +13 -1
  305. data/spec/models/token_model_api_response_spec.rb +1 -1
  306. data/spec/models/token_model_spec.rb +1 -1
  307. data/spec/models/trade_fund_bill_spec.rb +1 -1
  308. data/spec/models/trade_settle_detail_spec.rb +1 -1
  309. data/spec/models/trade_settle_info_spec.rb +1 -1
  310. data/spec/models/union_id_sign_in_request_spec.rb +1 -1
  311. data/spec/models/union_id_sign_up_request_spec.rb +1 -1
  312. data/spec/models/update_profile_request_spec.rb +37 -1
  313. data/spec/models/user_access_token_spec.rb +1 -1
  314. data/spec/models/user_common_interests_result_api_response_spec.rb +1 -1
  315. data/spec/models/user_common_interests_result_spec.rb +1 -1
  316. data/spec/models/user_currency_currency_trans_result_api_response_spec.rb +1 -1
  317. data/spec/models/user_currency_currency_trans_result_spec.rb +1 -1
  318. data/spec/models/user_currency_list_api_response_spec.rb +1 -1
  319. data/spec/models/user_currency_spec.rb +1 -1
  320. data/spec/models/user_followers_result_api_response_spec.rb +1 -1
  321. data/spec/models/user_followers_result_spec.rb +1 -1
  322. data/spec/models/user_friends_near_by_result_api_response_spec.rb +1 -1
  323. data/spec/models/user_friends_near_by_result_spec.rb +2 -2
  324. data/spec/models/user_location_post_result_api_response_spec.rb +1 -1
  325. data/spec/models/user_location_post_result_spec.rb +1 -1
  326. data/spec/models/user_locations_result_api_response_spec.rb +1 -1
  327. data/spec/models/user_locations_result_spec.rb +1 -1
  328. data/spec/models/user_logins_list_api_response_spec.rb +1 -1
  329. data/spec/models/user_logins_spec.rb +1 -1
  330. data/spec/models/user_mutual_followers_result_api_response_spec.rb +1 -1
  331. data/spec/models/user_mutual_followers_result_spec.rb +1 -1
  332. data/spec/models/user_mutual_followings_result_api_response_spec.rb +1 -1
  333. data/spec/models/user_mutual_followings_result_spec.rb +1 -1
  334. data/spec/models/user_profile_result_api_response_spec.rb +1 -1
  335. data/spec/models/user_profile_result_spec.rb +2 -80
  336. data/spec/models/user_qr_code_scan_result_api_response_spec.rb +1 -1
  337. data/spec/models/user_qr_code_scan_result_spec.rb +1 -1
  338. data/spec/models/user_spec.rb +1 -1
  339. data/spec/models/voucher_detail_spec.rb +1 -1
  340. data/spec/models/wechat_js_config_result_api_response_spec.rb +1 -1
  341. data/spec/models/wechat_js_config_result_spec.rb +1 -1
  342. data/spec/spec_helper.rb +1 -1
  343. data/zsgf_client.gemspec +1 -1
  344. metadata +159 -467
  345. data/docs/App.md +0 -50
  346. data/docs/AppApiResponse.md +0 -22
  347. data/docs/AppCheckVersionResult.md +0 -20
  348. data/docs/AppCheckVersionResultApiResponse.md +0 -22
  349. data/docs/AppListResult.md +0 -20
  350. data/docs/AppListResultApiResponse.md +0 -22
  351. data/docs/AppPostResult.md +0 -20
  352. data/docs/AppPostResultApiResponse.md +0 -22
  353. data/docs/AppSetting.md +0 -36
  354. data/docs/AppSettingApi.md +0 -1495
  355. data/docs/AppSettingApiResponse.md +0 -22
  356. data/docs/AppSettingGroupPostResult.md +0 -18
  357. data/docs/AppSettingGroupPostResultApiResponse.md +0 -22
  358. data/docs/AppSettingItemPostResult.md +0 -18
  359. data/docs/AppSettingItemPostResultApiResponse.md +0 -22
  360. data/docs/AppSettingListApiResponse.md +0 -22
  361. data/docs/AppSettingProviderPostResult.md +0 -18
  362. data/docs/AppSettingProviderPostResultApiResponse.md +0 -22
  363. data/docs/AppSettingSettingPostResult.md +0 -18
  364. data/docs/AppSettingSettingPostResultApiResponse.md +0 -22
  365. data/docs/AppUserListResponse.md +0 -40
  366. data/docs/AuthorizePolicy.md +0 -28
  367. data/docs/AuthorizePolicyApi.md +0 -377
  368. data/docs/AuthorizePolicyApiResponse.md +0 -22
  369. data/docs/AuthorizePolicyListApiResponse.md +0 -22
  370. data/docs/CreatePostResult.md +0 -18
  371. data/docs/CreatePostResultApiResponse.md +0 -22
  372. data/docs/Currency.md +0 -48
  373. data/docs/CurrencyApi.md +0 -677
  374. data/docs/CurrencyApiResponse.md +0 -22
  375. data/docs/CurrencyExchangeRate.md +0 -30
  376. data/docs/CurrencyListApiResponse.md +0 -22
  377. data/docs/CurrencyTransactionListApiResponse.md +0 -22
  378. data/docs/ExchangeRatePutRequest.md +0 -22
  379. data/docs/ExecuteFunctionRequest.md +0 -18
  380. data/docs/ListResponseItem.md +0 -36
  381. data/docs/ListResponseItemListApiResponse.md +0 -22
  382. data/docs/OAuthAccountSignInRequest.md +0 -22
  383. data/docs/PostIndexRequest.md +0 -20
  384. data/docs/PostResult.md +0 -18
  385. data/docs/PostResultApiResponse.md +0 -22
  386. data/docs/Project.md +0 -34
  387. data/docs/ProjectApi.md +0 -367
  388. data/docs/ProjectApiResponse.md +0 -22
  389. data/docs/ProjectListResult.md +0 -20
  390. data/docs/ProjectListResultApiResponse.md +0 -22
  391. data/docs/ServiceGroup.md +0 -36
  392. data/docs/ServiceGroupApiResponse.md +0 -22
  393. data/docs/ServiceGroupListApiResponse.md +0 -22
  394. data/docs/ServiceItem.md +0 -48
  395. data/docs/ServiceItemApiResponse.md +0 -22
  396. data/docs/ServiceItemListApiResponse.md +0 -22
  397. data/docs/ServiceProvider.md +0 -38
  398. data/docs/ServiceProviderApiResponse.md +0 -22
  399. data/docs/ServiceProviderListApiResponse.md +0 -22
  400. data/docs/ServiceSettingApi.md +0 -1459
  401. data/docs/ServiceSettingGroupPostResult.md +0 -18
  402. data/docs/ServiceSettingGroupPostResultApiResponse.md +0 -22
  403. data/docs/ServiceSettingItemPostResult.md +0 -18
  404. data/docs/ServiceSettingItemPostResultApiResponse.md +0 -22
  405. data/docs/ServiceSettingProviderPostResult.md +0 -18
  406. data/docs/ServiceSettingProviderPostResultApiResponse.md +0 -22
  407. data/docs/ServiceSettingSettingPostResult.md +0 -18
  408. data/docs/ServiceSettingSettingPostResultApiResponse.md +0 -22
  409. data/docs/Settings.md +0 -40
  410. data/docs/SettingsApiResponse.md +0 -22
  411. data/docs/SettingsListApiResponse.md +0 -22
  412. data/docs/StringListApiResponse.md +0 -22
  413. data/docs/SystemDirectoryItem.md +0 -24
  414. data/docs/SystemFileApi.md +0 -371
  415. data/docs/SystemFileItem.md +0 -24
  416. data/docs/SystemFileListResult.md +0 -22
  417. data/docs/SystemFileListResultApiResponse.md +0 -22
  418. data/docs/Team.md +0 -36
  419. data/docs/TeamApi.md +0 -297
  420. data/docs/UserApiResponse.md +0 -22
  421. data/docs/UserFollowingResult.md +0 -20
  422. data/docs/UserFollowingResultApiResponse.md +0 -22
  423. data/docs/UserListResult.md +0 -20
  424. data/docs/UserListResultApiResponse.md +0 -22
  425. data/docs/UserSetting.md +0 -38
  426. data/docs/UserSettingApi.md +0 -379
  427. data/docs/UserSettingApiResponse.md +0 -22
  428. data/docs/UserSettingListApiResponse.md +0 -22
  429. data/docs/UserSettingPostResult.md +0 -18
  430. data/docs/UserSettingPostResultApiResponse.md +0 -22
  431. data/lib/zsgf_client/api/app_setting_api.rb +0 -1446
  432. data/lib/zsgf_client/api/currency_api.rb +0 -667
  433. data/lib/zsgf_client/api/project_api.rb +0 -345
  434. data/lib/zsgf_client/api/service_setting_api.rb +0 -1340
  435. data/lib/zsgf_client/api/system_file_api.rb +0 -333
  436. data/lib/zsgf_client/api/team_api.rb +0 -282
  437. data/lib/zsgf_client/models/app.rb +0 -583
  438. data/lib/zsgf_client/models/app_api_response.rb +0 -245
  439. data/lib/zsgf_client/models/app_check_version_result.rb +0 -235
  440. data/lib/zsgf_client/models/app_check_version_result_api_response.rb +0 -245
  441. data/lib/zsgf_client/models/app_list_result.rb +0 -232
  442. data/lib/zsgf_client/models/app_setting.rb +0 -437
  443. data/lib/zsgf_client/models/app_setting_api_response.rb +0 -245
  444. data/lib/zsgf_client/models/app_setting_group_post_result.rb +0 -220
  445. data/lib/zsgf_client/models/app_setting_group_post_result_api_response.rb +0 -245
  446. data/lib/zsgf_client/models/app_setting_item_post_result.rb +0 -220
  447. data/lib/zsgf_client/models/app_setting_item_post_result_api_response.rb +0 -245
  448. data/lib/zsgf_client/models/app_setting_list_api_response.rb +0 -249
  449. data/lib/zsgf_client/models/app_setting_provider_post_result.rb +0 -220
  450. data/lib/zsgf_client/models/app_setting_provider_post_result_api_response.rb +0 -245
  451. data/lib/zsgf_client/models/app_setting_setting_post_result.rb +0 -220
  452. data/lib/zsgf_client/models/app_setting_setting_post_result_api_response.rb +0 -245
  453. data/lib/zsgf_client/models/app_user_list_response.rb +0 -327
  454. data/lib/zsgf_client/models/authorize_policy.rb +0 -290
  455. data/lib/zsgf_client/models/authorize_policy_api_response.rb +0 -245
  456. data/lib/zsgf_client/models/authorize_policy_list_api_response.rb +0 -249
  457. data/lib/zsgf_client/models/create_post_result.rb +0 -220
  458. data/lib/zsgf_client/models/create_post_result_api_response.rb +0 -245
  459. data/lib/zsgf_client/models/currency.rb +0 -484
  460. data/lib/zsgf_client/models/currency_api_response.rb +0 -245
  461. data/lib/zsgf_client/models/currency_exchange_rate.rb +0 -330
  462. data/lib/zsgf_client/models/currency_list_api_response.rb +0 -249
  463. data/lib/zsgf_client/models/currency_transaction_list_api_response.rb +0 -249
  464. data/lib/zsgf_client/models/exchange_rate_put_request.rb +0 -240
  465. data/lib/zsgf_client/models/execute_function_request.rb +0 -222
  466. data/lib/zsgf_client/models/list_response_item.rb +0 -308
  467. data/lib/zsgf_client/models/list_response_item_list_api_response.rb +0 -249
  468. data/lib/zsgf_client/models/post_index_request.rb +0 -251
  469. data/lib/zsgf_client/models/post_result.rb +0 -220
  470. data/lib/zsgf_client/models/post_result_api_response.rb +0 -245
  471. data/lib/zsgf_client/models/project.rb +0 -353
  472. data/lib/zsgf_client/models/project_api_response.rb +0 -245
  473. data/lib/zsgf_client/models/project_list_result.rb +0 -232
  474. data/lib/zsgf_client/models/project_list_result_api_response.rb +0 -245
  475. data/lib/zsgf_client/models/service_group.rb +0 -361
  476. data/lib/zsgf_client/models/service_group_api_response.rb +0 -245
  477. data/lib/zsgf_client/models/service_group_list_api_response.rb +0 -249
  478. data/lib/zsgf_client/models/service_item.rb +0 -502
  479. data/lib/zsgf_client/models/service_item_api_response.rb +0 -245
  480. data/lib/zsgf_client/models/service_item_list_api_response.rb +0 -249
  481. data/lib/zsgf_client/models/service_provider.rb +0 -403
  482. data/lib/zsgf_client/models/service_provider_api_response.rb +0 -245
  483. data/lib/zsgf_client/models/service_provider_list_api_response.rb +0 -249
  484. data/lib/zsgf_client/models/service_setting_group_post_result.rb +0 -220
  485. data/lib/zsgf_client/models/service_setting_group_post_result_api_response.rb +0 -245
  486. data/lib/zsgf_client/models/service_setting_item_post_result.rb +0 -220
  487. data/lib/zsgf_client/models/service_setting_item_post_result_api_response.rb +0 -245
  488. data/lib/zsgf_client/models/service_setting_provider_post_result.rb +0 -220
  489. data/lib/zsgf_client/models/service_setting_provider_post_result_api_response.rb +0 -245
  490. data/lib/zsgf_client/models/service_setting_setting_post_result.rb +0 -220
  491. data/lib/zsgf_client/models/service_setting_setting_post_result_api_response.rb +0 -245
  492. data/lib/zsgf_client/models/settings.rb +0 -445
  493. data/lib/zsgf_client/models/settings_api_response.rb +0 -245
  494. data/lib/zsgf_client/models/settings_list_api_response.rb +0 -249
  495. data/lib/zsgf_client/models/string_list_api_response.rb +0 -249
  496. data/lib/zsgf_client/models/system_directory_item.rb +0 -249
  497. data/lib/zsgf_client/models/system_file_item.rb +0 -249
  498. data/lib/zsgf_client/models/system_file_list_result_api_response.rb +0 -245
  499. data/lib/zsgf_client/models/team.rb +0 -376
  500. data/lib/zsgf_client/models/user_api_response.rb +0 -245
  501. data/lib/zsgf_client/models/user_following_result.rb +0 -232
  502. data/lib/zsgf_client/models/user_following_result_api_response.rb +0 -245
  503. data/lib/zsgf_client/models/user_list_result.rb +0 -232
  504. data/lib/zsgf_client/models/user_list_result_api_response.rb +0 -245
  505. data/lib/zsgf_client/models/user_setting.rb +0 -464
  506. data/lib/zsgf_client/models/user_setting_api_response.rb +0 -245
  507. data/lib/zsgf_client/models/user_setting_list_api_response.rb +0 -249
  508. data/lib/zsgf_client/models/user_setting_post_result.rb +0 -220
  509. data/lib/zsgf_client/models/user_setting_post_result_api_response.rb +0 -245
  510. data/spec/api/app_setting_api_spec.rb +0 -307
  511. data/spec/api/authorize_policy_api_spec.rb +0 -102
  512. data/spec/api/currency_api_spec.rb +0 -159
  513. data/spec/api/project_api_spec.rb +0 -97
  514. data/spec/api/service_setting_api_spec.rb +0 -289
  515. data/spec/api/system_file_api_spec.rb +0 -97
  516. data/spec/api/team_api_spec.rb +0 -85
  517. data/spec/models/app_api_response_spec.rb +0 -48
  518. data/spec/models/app_check_version_result_api_response_spec.rb +0 -48
  519. data/spec/models/app_check_version_result_spec.rb +0 -42
  520. data/spec/models/app_list_result_api_response_spec.rb +0 -48
  521. data/spec/models/app_list_result_spec.rb +0 -42
  522. data/spec/models/app_post_result_api_response_spec.rb +0 -48
  523. data/spec/models/app_setting_api_response_spec.rb +0 -48
  524. data/spec/models/app_setting_group_post_result_api_response_spec.rb +0 -48
  525. data/spec/models/app_setting_group_post_result_spec.rb +0 -36
  526. data/spec/models/app_setting_item_post_result_api_response_spec.rb +0 -48
  527. data/spec/models/app_setting_item_post_result_spec.rb +0 -36
  528. data/spec/models/app_setting_list_api_response_spec.rb +0 -48
  529. data/spec/models/app_setting_provider_post_result_api_response_spec.rb +0 -48
  530. data/spec/models/app_setting_provider_post_result_spec.rb +0 -36
  531. data/spec/models/app_setting_setting_post_result_api_response_spec.rb +0 -48
  532. data/spec/models/app_setting_setting_post_result_spec.rb +0 -36
  533. data/spec/models/app_setting_spec.rb +0 -90
  534. data/spec/models/app_user_list_response_spec.rb +0 -102
  535. data/spec/models/authorize_policy_api_response_spec.rb +0 -48
  536. data/spec/models/authorize_policy_list_api_response_spec.rb +0 -48
  537. data/spec/models/create_post_result_api_response_spec.rb +0 -48
  538. data/spec/models/create_post_result_spec.rb +0 -36
  539. data/spec/models/currency_api_response_spec.rb +0 -48
  540. data/spec/models/currency_exchange_rate_api_response_spec.rb +0 -48
  541. data/spec/models/currency_exchange_rate_spec.rb +0 -72
  542. data/spec/models/currency_list_api_response_spec.rb +0 -48
  543. data/spec/models/currency_spec.rb +0 -126
  544. data/spec/models/currency_transaction_list_api_response_spec.rb +0 -48
  545. data/spec/models/exchange_rate_put_request_spec.rb +0 -48
  546. data/spec/models/execute_function_request_spec.rb +0 -36
  547. data/spec/models/list_response_item_list_api_response_spec.rb +0 -48
  548. data/spec/models/list_response_item_spec.rb +0 -90
  549. data/spec/models/post_result_api_response_spec.rb +0 -48
  550. data/spec/models/post_result_spec.rb +0 -36
  551. data/spec/models/project_api_response_spec.rb +0 -48
  552. data/spec/models/project_list_result_api_response_spec.rb +0 -48
  553. data/spec/models/project_list_result_spec.rb +0 -42
  554. data/spec/models/project_spec.rb +0 -84
  555. data/spec/models/service_group_api_response_spec.rb +0 -48
  556. data/spec/models/service_group_list_api_response_spec.rb +0 -48
  557. data/spec/models/service_group_spec.rb +0 -90
  558. data/spec/models/service_item_api_response_spec.rb +0 -48
  559. data/spec/models/service_item_list_api_response_spec.rb +0 -48
  560. data/spec/models/service_item_spec.rb +0 -126
  561. data/spec/models/service_provider_api_response_spec.rb +0 -48
  562. data/spec/models/service_provider_list_api_response_spec.rb +0 -48
  563. data/spec/models/service_provider_spec.rb +0 -96
  564. data/spec/models/service_setting_group_post_result_api_response_spec.rb +0 -48
  565. data/spec/models/service_setting_group_post_result_spec.rb +0 -36
  566. data/spec/models/service_setting_item_post_result_api_response_spec.rb +0 -48
  567. data/spec/models/service_setting_item_post_result_spec.rb +0 -36
  568. data/spec/models/service_setting_provider_post_result_api_response_spec.rb +0 -48
  569. data/spec/models/service_setting_provider_post_result_spec.rb +0 -36
  570. data/spec/models/service_setting_setting_post_result_api_response_spec.rb +0 -48
  571. data/spec/models/service_setting_setting_post_result_spec.rb +0 -36
  572. data/spec/models/settings_api_response_spec.rb +0 -48
  573. data/spec/models/settings_list_api_response_spec.rb +0 -48
  574. data/spec/models/settings_spec.rb +0 -102
  575. data/spec/models/string_list_api_response_spec.rb +0 -48
  576. data/spec/models/system_file_item_spec.rb +0 -54
  577. data/spec/models/system_file_list_result_spec.rb +0 -48
  578. data/spec/models/team_spec.rb +0 -90
  579. data/spec/models/user_api_response_spec.rb +0 -48
  580. data/spec/models/user_following_result_api_response_spec.rb +0 -48
  581. data/spec/models/user_following_result_spec.rb +0 -42
  582. data/spec/models/user_list_result_api_response_spec.rb +0 -48
  583. data/spec/models/user_list_result_spec.rb +0 -42
  584. data/spec/models/user_setting_api_response_spec.rb +0 -48
  585. data/spec/models/user_setting_list_api_response_spec.rb +0 -48
  586. data/spec/models/user_setting_post_result_api_response_spec.rb +0 -48
  587. data/spec/models/user_setting_post_result_spec.rb +0 -36
  588. data/spec/models/user_setting_spec.rb +0 -96
data/docs/StorageApi.md CHANGED
@@ -1,25 +1,15 @@
1
1
  # ZSGFClient::StorageApi
2
2
 
3
- All URIs are relative to *https://api.zashigaofa.cn*
3
+ All URIs are relative to *https://api-dev.zashigaofa.cn*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**storage_aggregate**](StorageApi.md#storage_aggregate) | **GET** /Storage/{appKey}/{table}/Aggregate | 聚合查询 |
8
- | [**storage_clear**](StorageApi.md#storage_clear) | **DELETE** /Storage/{appKey}/{table}/Clear | 清空表数据 |
9
8
  | [**storage_delete**](StorageApi.md#storage_delete) | **DELETE** /Storage/{appKey}/{table}/{id} | 删除数据 |
10
- | [**storage_delete_index**](StorageApi.md#storage_delete_index) | **DELETE** /Storage/{appKey}/{table}/indexes | 删除索引 |
11
9
  | [**storage_detail**](StorageApi.md#storage_detail) | **GET** /Storage/{appKey}/{table}/{id} | 数据详情 |
12
- | [**storage_execute_function**](StorageApi.md#storage_execute_function) | **GET** /Storage/{appKey}/ExecuteFunction | 执行函数 |
13
- | [**storage_export**](StorageApi.md#storage_export) | **GET** /Storage/{appKey}/{table}/Export | 导出数据 |
14
- | [**storage_import**](StorageApi.md#storage_import) | **POST** /Storage/{appKey}/{table}/Import | 导入数据 |
15
- | [**storage_indexes**](StorageApi.md#storage_indexes) | **GET** /Storage/{appKey}/{table}/Indexes | 获取索引 |
16
10
  | [**storage_list**](StorageApi.md#storage_list) | **GET** /Storage/{appKey}/{table} | 查询数据 |
17
11
  | [**storage_post**](StorageApi.md#storage_post) | **POST** /Storage/{appKey}/{table} | 添加数据 |
18
- | [**storage_post_index**](StorageApi.md#storage_post_index) | **POST** /Storage/{appKey}/{table}/indexes | 添加索引 |
19
12
  | [**storage_put**](StorageApi.md#storage_put) | **PUT** /Storage/{appKey}/{table}/{id} | 更新数据 |
20
- | [**storage_remove**](StorageApi.md#storage_remove) | **DELETE** /Storage/{appKey}/{table}/Remove | 删除表 |
21
- | [**storage_stats**](StorageApi.md#storage_stats) | **GET** /Storage/{appKey}/{table}/Stats | 数据表统计 |
22
- | [**storage_tables**](StorageApi.md#storage_tables) | **GET** /Storage/{appKey}/Tables | 获取数据表 |
23
13
 
24
14
 
25
15
  ## storage_aggregate
@@ -97,81 +87,6 @@ end
97
87
  - **Accept**: application/json
98
88
 
99
89
 
100
- ## storage_clear
101
-
102
- > <Int64ApiResponse> storage_clear(table, app_key, opts)
103
-
104
- 清空表数据
105
-
106
- 根据筛选条件清空指定表中的数据
107
-
108
- ### Examples
109
-
110
- ```ruby
111
- require 'time'
112
- require 'zsgf_client'
113
- # setup authorization
114
- ZSGFClient.configure do |config|
115
- # Configure Bearer authorization: Bearer
116
- config.access_token = 'YOUR_BEARER_TOKEN'
117
- end
118
-
119
- api_instance = ZSGFClient::StorageApi.new
120
- table = 'table_example' # String | 表名称
121
- app_key = 'app_key_example' # String |
122
- opts = {
123
- filter: 'filter_example' # String | 筛选条件,json格式
124
- }
125
-
126
- begin
127
- # 清空表数据
128
- result = api_instance.storage_clear(table, app_key, opts)
129
- p result
130
- rescue ZSGFClient::ApiError => e
131
- puts "Error when calling StorageApi->storage_clear: #{e}"
132
- end
133
- ```
134
-
135
- #### Using the storage_clear_with_http_info variant
136
-
137
- This returns an Array which contains the response data, status code and headers.
138
-
139
- > <Array(<Int64ApiResponse>, Integer, Hash)> storage_clear_with_http_info(table, app_key, opts)
140
-
141
- ```ruby
142
- begin
143
- # 清空表数据
144
- data, status_code, headers = api_instance.storage_clear_with_http_info(table, app_key, opts)
145
- p status_code # => 2xx
146
- p headers # => { ... }
147
- p data # => <Int64ApiResponse>
148
- rescue ZSGFClient::ApiError => e
149
- puts "Error when calling StorageApi->storage_clear_with_http_info: #{e}"
150
- end
151
- ```
152
-
153
- ### Parameters
154
-
155
- | Name | Type | Description | Notes |
156
- | ---- | ---- | ----------- | ----- |
157
- | **table** | **String** | 表名称 | |
158
- | **app_key** | **String** | | |
159
- | **filter** | **String** | 筛选条件,json格式 | [optional] |
160
-
161
- ### Return type
162
-
163
- [**Int64ApiResponse**](Int64ApiResponse.md)
164
-
165
- ### Authorization
166
-
167
- [Bearer](../README.md#Bearer)
168
-
169
- ### HTTP request headers
170
-
171
- - **Content-Type**: Not defined
172
- - **Accept**: application/json
173
-
174
-
175
90
  ## storage_delete
176
91
 
177
92
  > <BooleanApiResponse> storage_delete(table, id, app_key)
@@ -245,81 +160,6 @@ end
245
160
  - **Accept**: application/json
246
161
 
247
162
 
248
- ## storage_delete_index
249
-
250
- > <BooleanApiResponse> storage_delete_index(table, app_key, opts)
251
-
252
- 删除索引
253
-
254
- 删除指定表的指定索引
255
-
256
- ### Examples
257
-
258
- ```ruby
259
- require 'time'
260
- require 'zsgf_client'
261
- # setup authorization
262
- ZSGFClient.configure do |config|
263
- # Configure Bearer authorization: Bearer
264
- config.access_token = 'YOUR_BEARER_TOKEN'
265
- end
266
-
267
- api_instance = ZSGFClient::StorageApi.new
268
- table = 'table_example' # String | 表名称
269
- app_key = 'app_key_example' # String |
270
- opts = {
271
- index_name: 'index_name_example' # String | 索引名称
272
- }
273
-
274
- begin
275
- # 删除索引
276
- result = api_instance.storage_delete_index(table, app_key, opts)
277
- p result
278
- rescue ZSGFClient::ApiError => e
279
- puts "Error when calling StorageApi->storage_delete_index: #{e}"
280
- end
281
- ```
282
-
283
- #### Using the storage_delete_index_with_http_info variant
284
-
285
- This returns an Array which contains the response data, status code and headers.
286
-
287
- > <Array(<BooleanApiResponse>, Integer, Hash)> storage_delete_index_with_http_info(table, app_key, opts)
288
-
289
- ```ruby
290
- begin
291
- # 删除索引
292
- data, status_code, headers = api_instance.storage_delete_index_with_http_info(table, app_key, opts)
293
- p status_code # => 2xx
294
- p headers # => { ... }
295
- p data # => <BooleanApiResponse>
296
- rescue ZSGFClient::ApiError => e
297
- puts "Error when calling StorageApi->storage_delete_index_with_http_info: #{e}"
298
- end
299
- ```
300
-
301
- ### Parameters
302
-
303
- | Name | Type | Description | Notes |
304
- | ---- | ---- | ----------- | ----- |
305
- | **table** | **String** | 表名称 | |
306
- | **app_key** | **String** | | |
307
- | **index_name** | **String** | 索引名称 | [optional] |
308
-
309
- ### Return type
310
-
311
- [**BooleanApiResponse**](BooleanApiResponse.md)
312
-
313
- ### Authorization
314
-
315
- [Bearer](../README.md#Bearer)
316
-
317
- ### HTTP request headers
318
-
319
- - **Content-Type**: Not defined
320
- - **Accept**: application/json
321
-
322
-
323
163
  ## storage_detail
324
164
 
325
165
  > <ObjectApiResponse> storage_detail(table, id, app_key, opts)
@@ -397,92 +237,13 @@ end
397
237
  - **Accept**: application/json
398
238
 
399
239
 
400
- ## storage_execute_function
401
-
402
- > <ObjectApiResponse> storage_execute_function(nonce, timestamp, signature, app_key, opts)
403
-
404
- 执行函数
405
-
406
- 执行指定的函数
407
-
408
- ### Examples
409
-
410
- ```ruby
411
- require 'time'
412
- require 'zsgf_client'
413
- # setup authorization
414
- ZSGFClient.configure do |config|
415
- # Configure Bearer authorization: Bearer
416
- config.access_token = 'YOUR_BEARER_TOKEN'
417
- end
418
-
419
- api_instance = ZSGFClient::StorageApi.new
420
- nonce = 'nonce_example' # String | 随机字符串
421
- timestamp = 789 # Integer | 时间戳
422
- signature = 'signature_example' # String | 签名
423
- app_key = 'app_key_example' # String |
424
- opts = {
425
- execute_function_request: ZSGFClient::ExecuteFunctionRequest.new # ExecuteFunctionRequest | 函数请求参数
426
- }
427
-
428
- begin
429
- # 执行函数
430
- result = api_instance.storage_execute_function(nonce, timestamp, signature, app_key, opts)
431
- p result
432
- rescue ZSGFClient::ApiError => e
433
- puts "Error when calling StorageApi->storage_execute_function: #{e}"
434
- end
435
- ```
436
-
437
- #### Using the storage_execute_function_with_http_info variant
438
-
439
- This returns an Array which contains the response data, status code and headers.
440
-
441
- > <Array(<ObjectApiResponse>, Integer, Hash)> storage_execute_function_with_http_info(nonce, timestamp, signature, app_key, opts)
442
-
443
- ```ruby
444
- begin
445
- # 执行函数
446
- data, status_code, headers = api_instance.storage_execute_function_with_http_info(nonce, timestamp, signature, app_key, opts)
447
- p status_code # => 2xx
448
- p headers # => { ... }
449
- p data # => <ObjectApiResponse>
450
- rescue ZSGFClient::ApiError => e
451
- puts "Error when calling StorageApi->storage_execute_function_with_http_info: #{e}"
452
- end
453
- ```
454
-
455
- ### Parameters
456
-
457
- | Name | Type | Description | Notes |
458
- | ---- | ---- | ----------- | ----- |
459
- | **nonce** | **String** | 随机字符串 | |
460
- | **timestamp** | **Integer** | 时间戳 | |
461
- | **signature** | **String** | 签名 | |
462
- | **app_key** | **String** | | |
463
- | **execute_function_request** | [**ExecuteFunctionRequest**](ExecuteFunctionRequest.md) | 函数请求参数 | [optional] |
464
-
465
- ### Return type
466
-
467
- [**ObjectApiResponse**](ObjectApiResponse.md)
468
-
469
- ### Authorization
470
-
471
- [Bearer](../README.md#Bearer)
472
-
473
- ### HTTP request headers
474
-
475
- - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
476
- - **Accept**: application/json
477
-
478
-
479
- ## storage_export
240
+ ## storage_list
480
241
 
481
- > File storage_export(table, app_key, opts)
242
+ > <StorageListResultApiResponse> storage_list(table, app_key, opts)
482
243
 
483
- 导出数据
244
+ 查询数据
484
245
 
485
- 根据筛选条件导出指定表中的数据
246
+ 根据条件查询指定表中的数据
486
247
 
487
248
  ### Examples
488
249
 
@@ -499,35 +260,40 @@ api_instance = ZSGFClient::StorageApi.new
499
260
  table = 'table_example' # String | 表名称
500
261
  app_key = 'app_key_example' # String |
501
262
  opts = {
502
- filter: 'filter_example', # String | 筛选条件,json格式
263
+ filter: 'filter_example', # String | 过滤,json格式
264
+ project: 'project_example', # String | 字段映射,json格式
265
+ sort: 'sort_example', # String | 排序,json格式
503
266
  start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 开始时间
504
- end_time: Time.parse('2013-10-20T19:20:30+01:00') # Time | 结束时间
267
+ end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 结束时间
268
+ explain: true, # Boolean | 查看执行计划
269
+ take: 56, # Integer | 默认为10
270
+ skip: 56 # Integer | 默认为0
505
271
  }
506
272
 
507
273
  begin
508
- # 导出数据
509
- result = api_instance.storage_export(table, app_key, opts)
274
+ # 查询数据
275
+ result = api_instance.storage_list(table, app_key, opts)
510
276
  p result
511
277
  rescue ZSGFClient::ApiError => e
512
- puts "Error when calling StorageApi->storage_export: #{e}"
278
+ puts "Error when calling StorageApi->storage_list: #{e}"
513
279
  end
514
280
  ```
515
281
 
516
- #### Using the storage_export_with_http_info variant
282
+ #### Using the storage_list_with_http_info variant
517
283
 
518
284
  This returns an Array which contains the response data, status code and headers.
519
285
 
520
- > <Array(File, Integer, Hash)> storage_export_with_http_info(table, app_key, opts)
286
+ > <Array(<StorageListResultApiResponse>, Integer, Hash)> storage_list_with_http_info(table, app_key, opts)
521
287
 
522
288
  ```ruby
523
289
  begin
524
- # 导出数据
525
- data, status_code, headers = api_instance.storage_export_with_http_info(table, app_key, opts)
290
+ # 查询数据
291
+ data, status_code, headers = api_instance.storage_list_with_http_info(table, app_key, opts)
526
292
  p status_code # => 2xx
527
293
  p headers # => { ... }
528
- p data # => File
294
+ p data # => <StorageListResultApiResponse>
529
295
  rescue ZSGFClient::ApiError => e
530
- puts "Error when calling StorageApi->storage_export_with_http_info: #{e}"
296
+ puts "Error when calling StorageApi->storage_list_with_http_info: #{e}"
531
297
  end
532
298
  ```
533
299
 
@@ -537,13 +303,18 @@ end
537
303
  | ---- | ---- | ----------- | ----- |
538
304
  | **table** | **String** | 表名称 | |
539
305
  | **app_key** | **String** | | |
540
- | **filter** | **String** | 筛选条件,json格式 | [optional] |
306
+ | **filter** | **String** | 过滤,json格式 | [optional] |
307
+ | **project** | **String** | 字段映射,json格式 | [optional] |
308
+ | **sort** | **String** | 排序,json格式 | [optional] |
541
309
  | **start_time** | **Time** | 开始时间 | [optional] |
542
310
  | **end_time** | **Time** | 结束时间 | [optional] |
311
+ | **explain** | **Boolean** | 查看执行计划 | [optional][default to false] |
312
+ | **take** | **Integer** | 默认为10 | [optional][default to 10] |
313
+ | **skip** | **Integer** | 默认为0 | [optional][default to 0] |
543
314
 
544
315
  ### Return type
545
316
 
546
- **File**
317
+ [**StorageListResultApiResponse**](StorageListResultApiResponse.md)
547
318
 
548
319
  ### Authorization
549
320
 
@@ -555,13 +326,13 @@ end
555
326
  - **Accept**: application/json
556
327
 
557
328
 
558
- ## storage_import
329
+ ## storage_post
559
330
 
560
- > <BooleanApiResponse> storage_import(table, app_key, opts)
331
+ > <StringApiResponse> storage_post(table, app_key, request_body)
561
332
 
562
- 导入数据
333
+ 添加数据
563
334
 
564
- 从文件导入数据到指定表中
335
+ 向指定表中添加数据,可以是单个json对象或json数组
565
336
 
566
337
  ### Examples
567
338
 
@@ -575,36 +346,34 @@ ZSGFClient.configure do |config|
575
346
  end
576
347
 
577
348
  api_instance = ZSGFClient::StorageApi.new
578
- table = 'table_example' # String | 表名称
349
+ table = 'table_example' # String | 表名称(小写字母加数字,1-50位)
579
350
  app_key = 'app_key_example' # String |
580
- opts = {
581
- file: File.new('/path/to/some/file') # File | 导入的文件
582
- }
351
+ request_body = [3.56] # Array<Object> | json对象 / json数组
583
352
 
584
353
  begin
585
- # 导入数据
586
- result = api_instance.storage_import(table, app_key, opts)
354
+ # 添加数据
355
+ result = api_instance.storage_post(table, app_key, request_body)
587
356
  p result
588
357
  rescue ZSGFClient::ApiError => e
589
- puts "Error when calling StorageApi->storage_import: #{e}"
358
+ puts "Error when calling StorageApi->storage_post: #{e}"
590
359
  end
591
360
  ```
592
361
 
593
- #### Using the storage_import_with_http_info variant
362
+ #### Using the storage_post_with_http_info variant
594
363
 
595
364
  This returns an Array which contains the response data, status code and headers.
596
365
 
597
- > <Array(<BooleanApiResponse>, Integer, Hash)> storage_import_with_http_info(table, app_key, opts)
366
+ > <Array(<StringApiResponse>, Integer, Hash)> storage_post_with_http_info(table, app_key, request_body)
598
367
 
599
368
  ```ruby
600
369
  begin
601
- # 导入数据
602
- data, status_code, headers = api_instance.storage_import_with_http_info(table, app_key, opts)
370
+ # 添加数据
371
+ data, status_code, headers = api_instance.storage_post_with_http_info(table, app_key, request_body)
603
372
  p status_code # => 2xx
604
373
  p headers # => { ... }
605
- p data # => <BooleanApiResponse>
374
+ p data # => <StringApiResponse>
606
375
  rescue ZSGFClient::ApiError => e
607
- puts "Error when calling StorageApi->storage_import_with_http_info: #{e}"
376
+ puts "Error when calling StorageApi->storage_post_with_http_info: #{e}"
608
377
  end
609
378
  ```
610
379
 
@@ -612,13 +381,13 @@ end
612
381
 
613
382
  | Name | Type | Description | Notes |
614
383
  | ---- | ---- | ----------- | ----- |
615
- | **table** | **String** | 表名称 | |
384
+ | **table** | **String** | 表名称(小写字母加数字,1-50位) | |
616
385
  | **app_key** | **String** | | |
617
- | **file** | **File** | 导入的文件 | [optional] |
386
+ | **request_body** | [**Array&lt;Object&gt;**](Object.md) | json对象 / json数组 | |
618
387
 
619
388
  ### Return type
620
389
 
621
- [**BooleanApiResponse**](BooleanApiResponse.md)
390
+ [**StringApiResponse**](StringApiResponse.md)
622
391
 
623
392
  ### Authorization
624
393
 
@@ -626,17 +395,17 @@ end
626
395
 
627
396
  ### HTTP request headers
628
397
 
629
- - **Content-Type**: multipart/form-data
398
+ - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
630
399
  - **Accept**: application/json
631
400
 
632
401
 
633
- ## storage_indexes
402
+ ## storage_put
634
403
 
635
- > <ObjectListApiResponse> storage_indexes(table, app_key)
404
+ > <BooleanApiResponse> storage_put(table, id, app_key, request_body, opts)
636
405
 
637
- 获取索引
406
+ 更新数据
638
407
 
639
- 获取指定表的索引列表
408
+ 更新指定表中指定ID的数据,可以选择全量更新或部分更新
640
409
 
641
410
  ### Examples
642
411
 
@@ -651,32 +420,37 @@ end
651
420
 
652
421
  api_instance = ZSGFClient::StorageApi.new
653
422
  table = 'table_example' # String | 表名称
423
+ id = 'id_example' # String | 数据ID
654
424
  app_key = 'app_key_example' # String |
425
+ request_body = [3.56] # Array<Object> | json格式
426
+ opts = {
427
+ replace: true # Boolean | 是否为全量更新,默认为false
428
+ }
655
429
 
656
430
  begin
657
- # 获取索引
658
- result = api_instance.storage_indexes(table, app_key)
431
+ # 更新数据
432
+ result = api_instance.storage_put(table, id, app_key, request_body, opts)
659
433
  p result
660
434
  rescue ZSGFClient::ApiError => e
661
- puts "Error when calling StorageApi->storage_indexes: #{e}"
435
+ puts "Error when calling StorageApi->storage_put: #{e}"
662
436
  end
663
437
  ```
664
438
 
665
- #### Using the storage_indexes_with_http_info variant
439
+ #### Using the storage_put_with_http_info variant
666
440
 
667
441
  This returns an Array which contains the response data, status code and headers.
668
442
 
669
- > <Array(<ObjectListApiResponse>, Integer, Hash)> storage_indexes_with_http_info(table, app_key)
443
+ > <Array(<BooleanApiResponse>, Integer, Hash)> storage_put_with_http_info(table, id, app_key, request_body, opts)
670
444
 
671
445
  ```ruby
672
446
  begin
673
- # 获取索引
674
- data, status_code, headers = api_instance.storage_indexes_with_http_info(table, app_key)
447
+ # 更新数据
448
+ data, status_code, headers = api_instance.storage_put_with_http_info(table, id, app_key, request_body, opts)
675
449
  p status_code # => 2xx
676
450
  p headers # => { ... }
677
- p data # => <ObjectListApiResponse>
451
+ p data # => <BooleanApiResponse>
678
452
  rescue ZSGFClient::ApiError => e
679
- puts "Error when calling StorageApi->storage_indexes_with_http_info: #{e}"
453
+ puts "Error when calling StorageApi->storage_put_with_http_info: #{e}"
680
454
  end
681
455
  ```
682
456
 
@@ -685,327 +459,14 @@ end
685
459
  | Name | Type | Description | Notes |
686
460
  | ---- | ---- | ----------- | ----- |
687
461
  | **table** | **String** | 表名称 | |
462
+ | **id** | **String** | 数据ID | |
688
463
  | **app_key** | **String** | | |
464
+ | **request_body** | [**Array&lt;Object&gt;**](Object.md) | json格式 | |
465
+ | **replace** | **Boolean** | 是否为全量更新,默认为false | [optional][default to false] |
689
466
 
690
467
  ### Return type
691
468
 
692
- [**ObjectListApiResponse**](ObjectListApiResponse.md)
693
-
694
- ### Authorization
695
-
696
- [Bearer](../README.md#Bearer)
697
-
698
- ### HTTP request headers
699
-
700
- - **Content-Type**: Not defined
701
- - **Accept**: application/json
702
-
703
-
704
- ## storage_list
705
-
706
- > <StorageListResultApiResponse> storage_list(table, app_key, opts)
707
-
708
- 查询数据
709
-
710
- 根据条件查询指定表中的数据
711
-
712
- ### Examples
713
-
714
- ```ruby
715
- require 'time'
716
- require 'zsgf_client'
717
- # setup authorization
718
- ZSGFClient.configure do |config|
719
- # Configure Bearer authorization: Bearer
720
- config.access_token = 'YOUR_BEARER_TOKEN'
721
- end
722
-
723
- api_instance = ZSGFClient::StorageApi.new
724
- table = 'table_example' # String | 表名称
725
- app_key = 'app_key_example' # String |
726
- opts = {
727
- filter: 'filter_example', # String | 过滤,json格式
728
- project: 'project_example', # String | 字段映射,json格式
729
- sort: 'sort_example', # String | 排序,json格式
730
- start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 开始时间
731
- end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | 结束时间
732
- explain: true, # Boolean | 查看执行计划
733
- take: 56, # Integer | 默认为10
734
- skip: 56 # Integer | 默认为0
735
- }
736
-
737
- begin
738
- # 查询数据
739
- result = api_instance.storage_list(table, app_key, opts)
740
- p result
741
- rescue ZSGFClient::ApiError => e
742
- puts "Error when calling StorageApi->storage_list: #{e}"
743
- end
744
- ```
745
-
746
- #### Using the storage_list_with_http_info variant
747
-
748
- This returns an Array which contains the response data, status code and headers.
749
-
750
- > <Array(<StorageListResultApiResponse>, Integer, Hash)> storage_list_with_http_info(table, app_key, opts)
751
-
752
- ```ruby
753
- begin
754
- # 查询数据
755
- data, status_code, headers = api_instance.storage_list_with_http_info(table, app_key, opts)
756
- p status_code # => 2xx
757
- p headers # => { ... }
758
- p data # => <StorageListResultApiResponse>
759
- rescue ZSGFClient::ApiError => e
760
- puts "Error when calling StorageApi->storage_list_with_http_info: #{e}"
761
- end
762
- ```
763
-
764
- ### Parameters
765
-
766
- | Name | Type | Description | Notes |
767
- | ---- | ---- | ----------- | ----- |
768
- | **table** | **String** | 表名称 | |
769
- | **app_key** | **String** | | |
770
- | **filter** | **String** | 过滤,json格式 | [optional] |
771
- | **project** | **String** | 字段映射,json格式 | [optional] |
772
- | **sort** | **String** | 排序,json格式 | [optional] |
773
- | **start_time** | **Time** | 开始时间 | [optional] |
774
- | **end_time** | **Time** | 结束时间 | [optional] |
775
- | **explain** | **Boolean** | 查看执行计划 | [optional][default to false] |
776
- | **take** | **Integer** | 默认为10 | [optional][default to 10] |
777
- | **skip** | **Integer** | 默认为0 | [optional][default to 0] |
778
-
779
- ### Return type
780
-
781
- [**StorageListResultApiResponse**](StorageListResultApiResponse.md)
782
-
783
- ### Authorization
784
-
785
- [Bearer](../README.md#Bearer)
786
-
787
- ### HTTP request headers
788
-
789
- - **Content-Type**: Not defined
790
- - **Accept**: application/json
791
-
792
-
793
- ## storage_post
794
-
795
- > <StringApiResponse> storage_post(table, app_key, request_body)
796
-
797
- 添加数据
798
-
799
- 向指定表中添加数据,可以是单个json对象或json数组
800
-
801
- ### Examples
802
-
803
- ```ruby
804
- require 'time'
805
- require 'zsgf_client'
806
- # setup authorization
807
- ZSGFClient.configure do |config|
808
- # Configure Bearer authorization: Bearer
809
- config.access_token = 'YOUR_BEARER_TOKEN'
810
- end
811
-
812
- api_instance = ZSGFClient::StorageApi.new
813
- table = 'table_example' # String | 表名称(小写字母加数字,1-50位)
814
- app_key = 'app_key_example' # String |
815
- request_body = [3.56] # Array<Object> | json对象 / json数组
816
-
817
- begin
818
- # 添加数据
819
- result = api_instance.storage_post(table, app_key, request_body)
820
- p result
821
- rescue ZSGFClient::ApiError => e
822
- puts "Error when calling StorageApi->storage_post: #{e}"
823
- end
824
- ```
825
-
826
- #### Using the storage_post_with_http_info variant
827
-
828
- This returns an Array which contains the response data, status code and headers.
829
-
830
- > <Array(<StringApiResponse>, Integer, Hash)> storage_post_with_http_info(table, app_key, request_body)
831
-
832
- ```ruby
833
- begin
834
- # 添加数据
835
- data, status_code, headers = api_instance.storage_post_with_http_info(table, app_key, request_body)
836
- p status_code # => 2xx
837
- p headers # => { ... }
838
- p data # => <StringApiResponse>
839
- rescue ZSGFClient::ApiError => e
840
- puts "Error when calling StorageApi->storage_post_with_http_info: #{e}"
841
- end
842
- ```
843
-
844
- ### Parameters
845
-
846
- | Name | Type | Description | Notes |
847
- | ---- | ---- | ----------- | ----- |
848
- | **table** | **String** | 表名称(小写字母加数字,1-50位) | |
849
- | **app_key** | **String** | | |
850
- | **request_body** | [**Array&lt;Object&gt;**](Object.md) | json对象 / json数组 | |
851
-
852
- ### Return type
853
-
854
- [**StringApiResponse**](StringApiResponse.md)
855
-
856
- ### Authorization
857
-
858
- [Bearer](../README.md#Bearer)
859
-
860
- ### HTTP request headers
861
-
862
- - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
863
- - **Accept**: application/json
864
-
865
-
866
- ## storage_post_index
867
-
868
- > <StringApiResponse> storage_post_index(table, app_key, opts)
869
-
870
- 添加索引
871
-
872
- 为指定表添加索引
873
-
874
- ### Examples
875
-
876
- ```ruby
877
- require 'time'
878
- require 'zsgf_client'
879
- # setup authorization
880
- ZSGFClient.configure do |config|
881
- # Configure Bearer authorization: Bearer
882
- config.access_token = 'YOUR_BEARER_TOKEN'
883
- end
884
-
885
- api_instance = ZSGFClient::StorageApi.new
886
- table = 'table_example' # String | 表名称(小写字母加数字,1-50位)
887
- app_key = 'app_key_example' # String |
888
- opts = {
889
- post_index_request: ZSGFClient::PostIndexRequest.new({model: { key: [3.56]}}) # PostIndexRequest | json对象 / json数组
890
- }
891
-
892
- begin
893
- # 添加索引
894
- result = api_instance.storage_post_index(table, app_key, opts)
895
- p result
896
- rescue ZSGFClient::ApiError => e
897
- puts "Error when calling StorageApi->storage_post_index: #{e}"
898
- end
899
- ```
900
-
901
- #### Using the storage_post_index_with_http_info variant
902
-
903
- This returns an Array which contains the response data, status code and headers.
904
-
905
- > <Array(<StringApiResponse>, Integer, Hash)> storage_post_index_with_http_info(table, app_key, opts)
906
-
907
- ```ruby
908
- begin
909
- # 添加索引
910
- data, status_code, headers = api_instance.storage_post_index_with_http_info(table, app_key, opts)
911
- p status_code # => 2xx
912
- p headers # => { ... }
913
- p data # => <StringApiResponse>
914
- rescue ZSGFClient::ApiError => e
915
- puts "Error when calling StorageApi->storage_post_index_with_http_info: #{e}"
916
- end
917
- ```
918
-
919
- ### Parameters
920
-
921
- | Name | Type | Description | Notes |
922
- | ---- | ---- | ----------- | ----- |
923
- | **table** | **String** | 表名称(小写字母加数字,1-50位) | |
924
- | **app_key** | **String** | | |
925
- | **post_index_request** | [**PostIndexRequest**](PostIndexRequest.md) | json对象 / json数组 | [optional] |
926
-
927
- ### Return type
928
-
929
- [**StringApiResponse**](StringApiResponse.md)
930
-
931
- ### Authorization
932
-
933
- [Bearer](../README.md#Bearer)
934
-
935
- ### HTTP request headers
936
-
937
- - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
938
- - **Accept**: application/json
939
-
940
-
941
- ## storage_put
942
-
943
- > <BooleanApiResponse> storage_put(table, id, app_key, body, opts)
944
-
945
- 更新数据
946
-
947
- 更新指定表中指定ID的数据,可以选择全量更新或部分更新
948
-
949
- ### Examples
950
-
951
- ```ruby
952
- require 'time'
953
- require 'zsgf_client'
954
- # setup authorization
955
- ZSGFClient.configure do |config|
956
- # Configure Bearer authorization: Bearer
957
- config.access_token = 'YOUR_BEARER_TOKEN'
958
- end
959
-
960
- api_instance = ZSGFClient::StorageApi.new
961
- table = 'table_example' # String | 表名称
962
- id = 'id_example' # String | 数据ID
963
- app_key = 'app_key_example' # String |
964
- body = 3.56 # Object | json格式
965
- opts = {
966
- replace: true # Boolean | 是否为全量更新,默认为false
967
- }
968
-
969
- begin
970
- # 更新数据
971
- result = api_instance.storage_put(table, id, app_key, body, opts)
972
- p result
973
- rescue ZSGFClient::ApiError => e
974
- puts "Error when calling StorageApi->storage_put: #{e}"
975
- end
976
- ```
977
-
978
- #### Using the storage_put_with_http_info variant
979
-
980
- This returns an Array which contains the response data, status code and headers.
981
-
982
- > <Array(<BooleanApiResponse>, Integer, Hash)> storage_put_with_http_info(table, id, app_key, body, opts)
983
-
984
- ```ruby
985
- begin
986
- # 更新数据
987
- data, status_code, headers = api_instance.storage_put_with_http_info(table, id, app_key, body, opts)
988
- p status_code # => 2xx
989
- p headers # => { ... }
990
- p data # => <BooleanApiResponse>
991
- rescue ZSGFClient::ApiError => e
992
- puts "Error when calling StorageApi->storage_put_with_http_info: #{e}"
993
- end
994
- ```
995
-
996
- ### Parameters
997
-
998
- | Name | Type | Description | Notes |
999
- | ---- | ---- | ----------- | ----- |
1000
- | **table** | **String** | 表名称 | |
1001
- | **id** | **String** | 数据ID | |
1002
- | **app_key** | **String** | | |
1003
- | **body** | **Object** | json格式 | |
1004
- | **replace** | **Boolean** | 是否为全量更新,默认为false | [optional][default to false] |
1005
-
1006
- ### Return type
1007
-
1008
- [**BooleanApiResponse**](BooleanApiResponse.md)
469
+ [**BooleanApiResponse**](BooleanApiResponse.md)
1009
470
 
1010
471
  ### Authorization
1011
472
 
@@ -1016,214 +477,3 @@ end
1016
477
  - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
1017
478
  - **Accept**: application/json
1018
479
 
1019
-
1020
- ## storage_remove
1021
-
1022
- > <BooleanApiResponse> storage_remove(table, app_key)
1023
-
1024
- 删除表
1025
-
1026
- 删除指定表
1027
-
1028
- ### Examples
1029
-
1030
- ```ruby
1031
- require 'time'
1032
- require 'zsgf_client'
1033
- # setup authorization
1034
- ZSGFClient.configure do |config|
1035
- # Configure Bearer authorization: Bearer
1036
- config.access_token = 'YOUR_BEARER_TOKEN'
1037
- end
1038
-
1039
- api_instance = ZSGFClient::StorageApi.new
1040
- table = 'table_example' # String | 表名称
1041
- app_key = 'app_key_example' # String |
1042
-
1043
- begin
1044
- # 删除表
1045
- result = api_instance.storage_remove(table, app_key)
1046
- p result
1047
- rescue ZSGFClient::ApiError => e
1048
- puts "Error when calling StorageApi->storage_remove: #{e}"
1049
- end
1050
- ```
1051
-
1052
- #### Using the storage_remove_with_http_info variant
1053
-
1054
- This returns an Array which contains the response data, status code and headers.
1055
-
1056
- > <Array(<BooleanApiResponse>, Integer, Hash)> storage_remove_with_http_info(table, app_key)
1057
-
1058
- ```ruby
1059
- begin
1060
- # 删除表
1061
- data, status_code, headers = api_instance.storage_remove_with_http_info(table, app_key)
1062
- p status_code # => 2xx
1063
- p headers # => { ... }
1064
- p data # => <BooleanApiResponse>
1065
- rescue ZSGFClient::ApiError => e
1066
- puts "Error when calling StorageApi->storage_remove_with_http_info: #{e}"
1067
- end
1068
- ```
1069
-
1070
- ### Parameters
1071
-
1072
- | Name | Type | Description | Notes |
1073
- | ---- | ---- | ----------- | ----- |
1074
- | **table** | **String** | 表名称 | |
1075
- | **app_key** | **String** | | |
1076
-
1077
- ### Return type
1078
-
1079
- [**BooleanApiResponse**](BooleanApiResponse.md)
1080
-
1081
- ### Authorization
1082
-
1083
- [Bearer](../README.md#Bearer)
1084
-
1085
- ### HTTP request headers
1086
-
1087
- - **Content-Type**: Not defined
1088
- - **Accept**: application/json
1089
-
1090
-
1091
- ## storage_stats
1092
-
1093
- > <ObjectApiResponse> storage_stats(table, app_key)
1094
-
1095
- 数据表统计
1096
-
1097
- 获取指定表的数据统计信息
1098
-
1099
- ### Examples
1100
-
1101
- ```ruby
1102
- require 'time'
1103
- require 'zsgf_client'
1104
- # setup authorization
1105
- ZSGFClient.configure do |config|
1106
- # Configure Bearer authorization: Bearer
1107
- config.access_token = 'YOUR_BEARER_TOKEN'
1108
- end
1109
-
1110
- api_instance = ZSGFClient::StorageApi.new
1111
- table = 'table_example' # String | 表名称
1112
- app_key = 'app_key_example' # String |
1113
-
1114
- begin
1115
- # 数据表统计
1116
- result = api_instance.storage_stats(table, app_key)
1117
- p result
1118
- rescue ZSGFClient::ApiError => e
1119
- puts "Error when calling StorageApi->storage_stats: #{e}"
1120
- end
1121
- ```
1122
-
1123
- #### Using the storage_stats_with_http_info variant
1124
-
1125
- This returns an Array which contains the response data, status code and headers.
1126
-
1127
- > <Array(<ObjectApiResponse>, Integer, Hash)> storage_stats_with_http_info(table, app_key)
1128
-
1129
- ```ruby
1130
- begin
1131
- # 数据表统计
1132
- data, status_code, headers = api_instance.storage_stats_with_http_info(table, app_key)
1133
- p status_code # => 2xx
1134
- p headers # => { ... }
1135
- p data # => <ObjectApiResponse>
1136
- rescue ZSGFClient::ApiError => e
1137
- puts "Error when calling StorageApi->storage_stats_with_http_info: #{e}"
1138
- end
1139
- ```
1140
-
1141
- ### Parameters
1142
-
1143
- | Name | Type | Description | Notes |
1144
- | ---- | ---- | ----------- | ----- |
1145
- | **table** | **String** | 表名称 | |
1146
- | **app_key** | **String** | | |
1147
-
1148
- ### Return type
1149
-
1150
- [**ObjectApiResponse**](ObjectApiResponse.md)
1151
-
1152
- ### Authorization
1153
-
1154
- [Bearer](../README.md#Bearer)
1155
-
1156
- ### HTTP request headers
1157
-
1158
- - **Content-Type**: Not defined
1159
- - **Accept**: application/json
1160
-
1161
-
1162
- ## storage_tables
1163
-
1164
- > <StringListApiResponse> storage_tables(app_key)
1165
-
1166
- 获取数据表
1167
-
1168
- 获取当前应用的所有数据表名称
1169
-
1170
- ### Examples
1171
-
1172
- ```ruby
1173
- require 'time'
1174
- require 'zsgf_client'
1175
- # setup authorization
1176
- ZSGFClient.configure do |config|
1177
- # Configure Bearer authorization: Bearer
1178
- config.access_token = 'YOUR_BEARER_TOKEN'
1179
- end
1180
-
1181
- api_instance = ZSGFClient::StorageApi.new
1182
- app_key = 'app_key_example' # String |
1183
-
1184
- begin
1185
- # 获取数据表
1186
- result = api_instance.storage_tables(app_key)
1187
- p result
1188
- rescue ZSGFClient::ApiError => e
1189
- puts "Error when calling StorageApi->storage_tables: #{e}"
1190
- end
1191
- ```
1192
-
1193
- #### Using the storage_tables_with_http_info variant
1194
-
1195
- This returns an Array which contains the response data, status code and headers.
1196
-
1197
- > <Array(<StringListApiResponse>, Integer, Hash)> storage_tables_with_http_info(app_key)
1198
-
1199
- ```ruby
1200
- begin
1201
- # 获取数据表
1202
- data, status_code, headers = api_instance.storage_tables_with_http_info(app_key)
1203
- p status_code # => 2xx
1204
- p headers # => { ... }
1205
- p data # => <StringListApiResponse>
1206
- rescue ZSGFClient::ApiError => e
1207
- puts "Error when calling StorageApi->storage_tables_with_http_info: #{e}"
1208
- end
1209
- ```
1210
-
1211
- ### Parameters
1212
-
1213
- | Name | Type | Description | Notes |
1214
- | ---- | ---- | ----------- | ----- |
1215
- | **app_key** | **String** | | |
1216
-
1217
- ### Return type
1218
-
1219
- [**StringListApiResponse**](StringListApiResponse.md)
1220
-
1221
- ### Authorization
1222
-
1223
- [Bearer](../README.md#Bearer)
1224
-
1225
- ### HTTP request headers
1226
-
1227
- - **Content-Type**: Not defined
1228
- - **Accept**: application/json
1229
-