zsgf_client 2.0.0 → 2.1.2

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.
data/README.md CHANGED
@@ -1,430 +1,560 @@
1
- # zsgf_client
1
+ # ZSGF Client Ruby SDK
2
2
 
3
3
  ![Gem Version](https://img.shields.io/gem/v/zsgf_client)
4
4
 
5
- ## 安装
5
+ 掌事高发(ZSGF)Ruby SDK,为开发者提供便捷的API访问接口。
6
+
7
+ ## 📦 安装
8
+
9
+ ### 使用 gem 安装
6
10
 
7
11
  ```shell
8
12
  gem install zsgf_client
9
13
  ```
10
14
 
11
- ## 入门
15
+ ### 使用 Bundler
16
+
17
+ 在您的 `Gemfile` 中添加:
18
+
19
+ ```ruby
20
+ gem 'zsgf_client'
21
+ ```
22
+
23
+ 然后执行:
24
+
25
+ ```shell
26
+ bundle install
27
+ ```
28
+
29
+ ## 🚀 快速开始
30
+
31
+ ### 基础配置
12
32
 
13
33
  ```ruby
14
- # 加载gem
15
34
  require 'zsgf_client'
16
35
 
17
- # 设置授权
36
+ # 配置SDK
18
37
  ZSGFClient.configure do |config|
19
- # 配置Bearer授权:Bearer
38
+ # 方式1:直接设置访问令牌
20
39
  config.access_token = 'YOUR_BEARER_TOKEN'
21
- # 配置一个proc来获取访问令牌,代替静态access_token配置
22
- config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
40
+
41
+ # 方式2:动态获取访问令牌(推荐)
42
+ config.access_token_getter = -> {
43
+ # 这里可以实现您的令牌获取逻辑
44
+ # 例如从数据库、缓存或其他服务获取
45
+ get_token_from_database()
46
+ }
23
47
  end
48
+ ```
24
49
 
50
+ ### 简单示例
51
+
52
+ ```ruby
53
+ # 获取应用信息
25
54
  api_instance = ZSGFClient::AppApi.new
26
- app_key = 'app_key_example' # String |
55
+ app_key = 'your_app_key'
56
+
57
+ begin
58
+ result = api_instance.app_info(app_key)
59
+ puts "应用名称: #{result.data.name}"
60
+ puts "应用描述: #{result.data.description}"
61
+ rescue ZSGFClient::ApiError => e
62
+ puts "API调用失败: #{e.message}"
63
+ puts "错误代码: #{e.code}"
64
+ end
65
+ ```
66
+
67
+ ## 📚 核心功能模块
68
+
69
+ ### 🔐 用户认证与管理
70
+
71
+ #### 用户注册与登录
72
+
73
+ ```ruby
74
+ user_api = ZSGFClient::UserApi.new
75
+
76
+ # 邮箱注册
77
+ signup_request = ZSGFClient::EmailSignUpRequest.new(
78
+ email: 'user@example.com',
79
+ password: 'secure_password',
80
+ code: 'verification_code'
81
+ )
82
+
83
+ begin
84
+ result = user_api.user_email_sign_up(app_key, signup_request)
85
+ puts "注册成功,用户ID: #{result.data.user_id}"
86
+ rescue ZSGFClient::ApiError => e
87
+ puts "注册失败: #{e.message}"
88
+ end
89
+
90
+ # 邮箱登录
91
+ signin_request = ZSGFClient::EmailSignInRequest.new(
92
+ email: 'user@example.com',
93
+ password: 'secure_password'
94
+ )
95
+
96
+ result = user_api.user_email_sign_in(app_key, signin_request)
97
+ access_token = result.data.access_token
98
+ ```
99
+
100
+ #### 用户资料管理
101
+
102
+ ```ruby
103
+ # 获取用户资料
104
+ profile = user_api.user_profile(app_key)
105
+ puts "用户昵称: #{profile.data.nickname}"
106
+
107
+ # 更新用户资料
108
+ update_request = ZSGFClient::UpdateProfileRequest.new(
109
+ nickname: '新昵称',
110
+ avatar: 'https://example.com/avatar.jpg'
111
+ )
112
+
113
+ user_api.user_update_profile(app_key, update_request)
114
+ ```
115
+
116
+ ### 💰 虚拟货币系统
117
+
118
+ ```ruby
119
+ currency_api = ZSGFClient::UserCurrencyApi.new
120
+
121
+ # 查询用户资产
122
+ currencies = currency_api.user_currencies(app_key, user_id)
123
+ currencies.data.each do |currency|
124
+ puts "货币: #{currency.name}, 余额: #{currency.balance}"
125
+ end
126
+
127
+ # 充值虚拟币
128
+ recharge_request = ZSGFClient::RechargePointRequest.new(
129
+ currency_id: 1,
130
+ amount: 100,
131
+ reason: '充值'
132
+ )
133
+
134
+ currency_api.user_currency_recharge(app_key, recharge_request)
135
+
136
+ # 消费虚拟币
137
+ consume_request = ZSGFClient::CurrencyConsumeRequest.new(
138
+ currency_id: 1,
139
+ amount: 50,
140
+ reason: '购买商品'
141
+ )
142
+
143
+ currency_api.user_currency_consume(app_key, consume_request)
144
+ ```
145
+
146
+ ### 📂 文件存储
147
+
148
+ ```ruby
149
+ file_api = ZSGFClient::FileApi.new
150
+
151
+ # 获取文件列表
152
+ files = file_api.files(app_key, path: '/')
153
+ files.data.each do |file|
154
+ puts "文件名: #{file.name}, 大小: #{file.size}"
155
+ end
156
+
157
+ # 创建文件夹
158
+ file_api.file_create_folder(app_key, {
159
+ path: '/新文件夹',
160
+ name: '我的文件夹'
161
+ })
162
+
163
+ # 上传文件
164
+ File.open('local_file.txt', 'rb') do |file|
165
+ file_api.file_upload(app_key, {
166
+ path: '/',
167
+ file: file
168
+ })
169
+ end
170
+ ```
171
+
172
+ ### 🗄️ 数据存储
173
+
174
+ ```ruby
175
+ storage_api = ZSGFClient::StorageApi.new
176
+ table_name = 'users'
177
+
178
+ # 添加数据
179
+ data = {
180
+ name: '张三',
181
+ age: 25,
182
+ email: 'zhangsan@example.com'
183
+ }
184
+
185
+ result = storage_api.storage_post(app_key, table_name, data)
186
+ record_id = result.data.id
187
+
188
+ # 查询数据
189
+ records = storage_api.storage_list(app_key, table_name, {
190
+ filter: 'age > 20',
191
+ limit: 10
192
+ })
193
+
194
+ # 更新数据
195
+ update_data = { age: 26 }
196
+ storage_api.storage_put(app_key, table_name, record_id, update_data)
197
+
198
+ # 删除数据
199
+ storage_api.storage_delete(app_key, table_name, record_id)
200
+ ```
201
+
202
+ ### 💳 支付功能
203
+
204
+ ```ruby
205
+ # 支付宝支付
206
+ alipay_api = ZSGFClient::AlipayApi.new
207
+
208
+ # 创建当面付订单
209
+ order_request = ZSGFClient::AlipayCreateOrderRequest.new(
210
+ out_trade_no: "ORDER_#{Time.now.to_i}",
211
+ total_amount: '99.00',
212
+ subject: '商品标题',
213
+ body: '商品描述'
214
+ )
215
+
216
+ result = alipay_api.alipay_create_order(app_key, order_request)
217
+ puts "支付二维码: #{result.data.qr_code}"
218
+
219
+ # 查询订单状态
220
+ order_detail = alipay_api.alipay_order_detail(app_key, {
221
+ out_trade_no: order_request.out_trade_no
222
+ })
223
+ puts "订单状态: #{order_detail.data.trade_status}"
224
+ ```
225
+
226
+ ### 📱 微信功能
227
+
228
+ ```ruby
229
+ wechat_api = ZSGFClient::WechatApi.new
230
+
231
+ # 小程序登录
232
+ js_code = 'wx_js_code_from_frontend'
233
+ session_result = wechat_api.wechat_js_code2_session(app_key, {
234
+ js_code: js_code
235
+ })
236
+
237
+ openid = session_result.data.openid
238
+ session_key = session_result.data.session_key
239
+
240
+ # 发送订阅消息
241
+ subscribe_msg = {
242
+ touser: openid,
243
+ template_id: 'template_id',
244
+ data: {
245
+ thing1: { value: '消息内容' },
246
+ time2: { value: Time.now.strftime('%Y-%m-%d %H:%M:%S') }
247
+ }
248
+ }
249
+
250
+ wechat_api.wechat_subscribe_send(app_key, subscribe_msg)
251
+ ```
252
+
253
+ ## 🔧 高级配置
27
254
 
255
+ ### 错误处理
256
+
257
+ ```ruby
28
258
  begin
29
- #应用详情
30
- result = api_instance.app(app_key)
31
- p result
259
+ result = api_instance.some_method(params)
32
260
  rescue ZSGFClient::ApiError => e
33
- puts "Exception when calling AppApi->app: #{e}"
261
+ case e.code
262
+ when 401
263
+ puts "认证失败,请检查访问令牌"
264
+ when 403
265
+ puts "权限不足"
266
+ when 404
267
+ puts "资源不存在"
268
+ when 429
269
+ puts "请求过于频繁,请稍后再试"
270
+ else
271
+ puts "API错误: #{e.message}"
272
+ end
273
+ rescue StandardError => e
274
+ puts "系统错误: #{e.message}"
34
275
  end
276
+ ```
35
277
 
278
+ ### 自定义配置
279
+
280
+ ```ruby
281
+ ZSGFClient.configure do |config|
282
+ # API基础URL(通常不需要修改)
283
+ config.host = 'api.zashigaofa.cn'
284
+
285
+ # 超时设置
286
+ config.timeout = 30
287
+
288
+ # 调试模式
289
+ config.debugging = true
290
+
291
+ # 自定义用户代理
292
+ config.user_agent = 'MyApp/1.0'
293
+ end
36
294
  ```
37
295
 
38
- ## API端点文档
39
-
40
- 所有URI都是相对于*https://api.zashigaofa.cn*的
41
-
42
- 类 | 方法 | HTTP请求 | 描述
43
- ------------ | ------------- | ------------- | -------------
44
- *ZSGFClient::AccessTokenApi* | [**access_token_delete**](docs/AccessTokenApi.md#access_token_delete) | **DELETE** /AccessToken/{appKey}/{id} | 删除令牌
45
- *ZSGFClient::AccessTokenApi* | [**access_token_post**](docs/AccessTokenApi.md#access_token_post) | **POST** /AccessToken/{appKey} | 创建令牌
46
- *ZSGFClient::AccessTokenApi* | [**access_token_put**](docs/AccessTokenApi.md#access_token_put) | **PUT** /AccessToken/{appKey}/{id} | 更新令牌
47
- *ZSGFClient::AccessTokenApi* | [**access_tokens**](docs/AccessTokenApi.md#access_tokens) | **GET** /AccessToken/{appKey} | 令牌列表
48
- *ZSGFClient::AlipayApi* | [**alipay_create_order**](docs/AlipayApi.md#alipay_create_order) | **POST** /Alipay/{appKey}/CreateOrder | 创建订单 - 当面付
49
- *ZSGFClient::AlipayApi* | [**alipay_create_order_page_pay**](docs/AlipayApi.md#alipay_create_order_page_pay) | **POST** /Alipay/{appKey}/CreateOrderPagePay | 创建订单 - PC支付
50
- *ZSGFClient::AlipayApi* | [**alipay_create_order_wap_pay**](docs/AlipayApi.md#alipay_create_order_wap_pay) | **POST** /Alipay/{appKey}/CreateOrderWapPay | 创建订单 - WAP支付
51
- *ZSGFClient::AlipayApi* | [**alipay_order_detail**](docs/AlipayApi.md#alipay_order_detail) | **GET** /Alipay/{appKey}/OrderDetail | 订单详情
52
- *ZSGFClient::AlipayApi* | [**alipay_order_refund**](docs/AlipayApi.md#alipay_order_refund) | **POST** /Alipay/{appKey}/OrderRefund | 订单退款
53
- *ZSGFClient::AlipayApi* | [**alipay_return_page_notify**](docs/AlipayApi.md#alipay_return_page_notify) | **POST** /Alipay/{appKey}/ReturnPageNotify | 支付成功同步通知
54
- *ZSGFClient::AppApi* | [**app**](docs/AppApi.md#app) | **GET** /App/{appKey} | 应用详情
55
- *ZSGFClient::AppApi* | [**app2_fa**](docs/AppApi.md#app2_fa) | **GET** /App/{appKey}/2FA | 双因素验证 获取
56
- *ZSGFClient::AppApi* | [**app2_fa_check**](docs/AppApi.md#app2_fa_check) | **GET** /App/{appKey}/2FACheck | 双因素验证 验证
57
- *ZSGFClient::AppApi* | [**app_check_version**](docs/AppApi.md#app_check_version) | **GET** /App/{appKey}/CheckVersion | 更新应用数据库
58
- *ZSGFClient::AppApi* | [**app_delete**](docs/AppApi.md#app_delete) | **DELETE** /App/{appKey} | 删除应用
59
- *ZSGFClient::AppApi* | [**app_info**](docs/AppApi.md#app_info) | **GET** /App/{appKey}/Info | 应用详情
60
- *ZSGFClient::AppApi* | [**app_post**](docs/AppApi.md#app_post) | **POST** /App | 创建应用
61
- *ZSGFClient::AppApi* | [**app_put**](docs/AppApi.md#app_put) | **PUT** /App/{appKey} | 更新应用
62
- *ZSGFClient::AppApi* | [**app_transfer**](docs/AppApi.md#app_transfer) | **GET** /App/{appKey}/Transfer | 转移应用
63
- *ZSGFClient::AppApi* | [**apps**](docs/AppApi.md#apps) | **GET** /App | 应用列表
64
- *ZSGFClient::AppSettingApi* | [**app_service_setting_group**](docs/AppSettingApi.md#app_service_setting_group) | **GET** /AppSetting/{appKey}/Groups/{id} | 获取服务分组详情
65
- *ZSGFClient::AppSettingApi* | [**app_service_setting_group_delete**](docs/AppSettingApi.md#app_service_setting_group_delete) | **DELETE** /AppSetting/{appKey}/Groups/{id} | 删除服务分组
66
- *ZSGFClient::AppSettingApi* | [**app_service_setting_group_post**](docs/AppSettingApi.md#app_service_setting_group_post) | **POST** /AppSetting/{appKey}/Groups | 添加服务分组
67
- *ZSGFClient::AppSettingApi* | [**app_service_setting_group_put**](docs/AppSettingApi.md#app_service_setting_group_put) | **PUT** /AppSetting/{appKey}/Groups/{id} | 更新服务分组
68
- *ZSGFClient::AppSettingApi* | [**app_service_setting_groups**](docs/AppSettingApi.md#app_service_setting_groups) | **GET** /AppSetting/{appKey}/Groups | 获取服务分组列表
69
- *ZSGFClient::AppSettingApi* | [**app_service_setting_item**](docs/AppSettingApi.md#app_service_setting_item) | **GET** /AppSetting/{appKey}/Items/{id} | 服务配置项详情
70
- *ZSGFClient::AppSettingApi* | [**app_service_setting_item_delete**](docs/AppSettingApi.md#app_service_setting_item_delete) | **DELETE** /AppSetting/{appKey}/Items/{id} | 删除服务配置项
71
- *ZSGFClient::AppSettingApi* | [**app_service_setting_item_post**](docs/AppSettingApi.md#app_service_setting_item_post) | **POST** /AppSetting/{appKey}/Items | 添加服务配置项
72
- *ZSGFClient::AppSettingApi* | [**app_service_setting_item_put**](docs/AppSettingApi.md#app_service_setting_item_put) | **PUT** /AppSetting/{appKey}/Items/{id} | 更新服务配置项
73
- *ZSGFClient::AppSettingApi* | [**app_service_setting_items**](docs/AppSettingApi.md#app_service_setting_items) | **GET** /AppSetting/{appKey}/Items | 服务配置项列表
74
- *ZSGFClient::AppSettingApi* | [**app_service_setting_provider**](docs/AppSettingApi.md#app_service_setting_provider) | **GET** /AppSetting/{appKey}/Providers/{id} | 获取服务商详情
75
- *ZSGFClient::AppSettingApi* | [**app_service_setting_provider_delete**](docs/AppSettingApi.md#app_service_setting_provider_delete) | **DELETE** /AppSetting/{appKey}/Providers/{id} | 删除服务商
76
- *ZSGFClient::AppSettingApi* | [**app_service_setting_provider_post**](docs/AppSettingApi.md#app_service_setting_provider_post) | **POST** /AppSetting/{appKey}/Providers | 添加服务商
77
- *ZSGFClient::AppSettingApi* | [**app_service_setting_provider_put**](docs/AppSettingApi.md#app_service_setting_provider_put) | **PUT** /AppSetting/{appKey}/Providers/{id} | 更新服务商
78
- *ZSGFClient::AppSettingApi* | [**app_service_setting_providers**](docs/AppSettingApi.md#app_service_setting_providers) | **GET** /AppSetting/{appKey}/Providers | 获取服务商列表
79
- *ZSGFClient::AppSettingApi* | [**app_setting**](docs/AppSettingApi.md#app_setting) | **GET** /AppSetting/{appKey}/{id} | 配置详情
80
- *ZSGFClient::AppSettingApi* | [**app_setting_delete**](docs/AppSettingApi.md#app_setting_delete) | **DELETE** /AppSetting/{appKey}/{id} | 删除配置
81
- *ZSGFClient::AppSettingApi* | [**app_setting_post**](docs/AppSettingApi.md#app_setting_post) | **POST** /AppSetting/{appKey} | 增加配置
82
- *ZSGFClient::AppSettingApi* | [**app_setting_put**](docs/AppSettingApi.md#app_setting_put) | **PUT** /AppSetting/{appKey}/{id} | 更新配置
83
- *ZSGFClient::AppSettingApi* | [**app_settings**](docs/AppSettingApi.md#app_settings) | **GET** /AppSetting/{appKey} | 配置列表
84
- *ZSGFClient::AuthorizePolicyApi* | [**authorize_policies**](docs/AuthorizePolicyApi.md#authorize_policies) | **GET** /AuthorizePolicy/{appKey} | 获取鉴权策略列表
85
- *ZSGFClient::AuthorizePolicyApi* | [**authorize_policy**](docs/AuthorizePolicyApi.md#authorize_policy) | **GET** /AuthorizePolicy/{appKey}/{id} | 获取鉴权策略详情
86
- *ZSGFClient::AuthorizePolicyApi* | [**authorize_policy_delete**](docs/AuthorizePolicyApi.md#authorize_policy_delete) | **DELETE** /AuthorizePolicy/{appKey}/{id} | 删除鉴权策略
87
- *ZSGFClient::AuthorizePolicyApi* | [**authorize_policy_post**](docs/AuthorizePolicyApi.md#authorize_policy_post) | **POST** /AuthorizePolicy/{appKey} | 添加鉴权策略
88
- *ZSGFClient::AuthorizePolicyApi* | [**authorize_policy_put**](docs/AuthorizePolicyApi.md#authorize_policy_put) | **PUT** /AuthorizePolicy/{appKey}/{id} | 更新鉴权策略
89
- *ZSGFClient::CurrencyApi* | [**currencies**](docs/CurrencyApi.md#currencies) | **GET** /Currency/{appKey} | 获取货币列表
90
- *ZSGFClient::CurrencyApi* | [**currency**](docs/CurrencyApi.md#currency) | **GET** /Currency/{appKey}/{id} | 获取货币详情
91
- *ZSGFClient::CurrencyApi* | [**currency_delete**](docs/CurrencyApi.md#currency_delete) | **DELETE** /Currency/{appKey}/{id} | 删除货币
92
- *ZSGFClient::CurrencyApi* | [**currency_exchange_rate_delete**](docs/CurrencyApi.md#currency_exchange_rate_delete) | **DELETE** /Currency/{appKey}/ExchangeRates/{id} | 删除汇率
93
- *ZSGFClient::CurrencyApi* | [**currency_exchange_rate_put**](docs/CurrencyApi.md#currency_exchange_rate_put) | **PUT** /Currency/{appKey}/ExchangeRates/{code} | 更新汇率
94
- *ZSGFClient::CurrencyApi* | [**currency_exchange_rates**](docs/CurrencyApi.md#currency_exchange_rates) | **GET** /Currency/{appKey}/ExchangeRates/{code} | 获取汇率列表
95
- *ZSGFClient::CurrencyApi* | [**currency_post**](docs/CurrencyApi.md#currency_post) | **POST** /Currency/{appKey} | 创建新货币
96
- *ZSGFClient::CurrencyApi* | [**currency_put**](docs/CurrencyApi.md#currency_put) | **PUT** /Currency/{appKey}/{id} | 更新货币信息
97
- *ZSGFClient::CurrencyApi* | [**currency_transactions**](docs/CurrencyApi.md#currency_transactions) | **GET** /Currency/{appKey}/Transactions | 获取货币交易记录
98
- *ZSGFClient::DingTalkApi* | [**ding_talk_user_info**](docs/DingTalkApi.md#ding_talk_user_info) | **GET** /DingTalk/{appKey}/UserInfo | 获取用户资料
99
- *ZSGFClient::FileApi* | [**file_create_folder**](docs/FileApi.md#file_create_folder) | **POST** /File/{appKey}/CreateFolder | 创建文件夹
100
- *ZSGFClient::FileApi* | [**file_delete**](docs/FileApi.md#file_delete) | **DELETE** /File/{appKey} | 删除文件或文件夹
101
- *ZSGFClient::FileApi* | [**file_rename**](docs/FileApi.md#file_rename) | **POST** /File/{appKey}/Rename | 重命名文件或文件夹
102
- *ZSGFClient::FileApi* | [**file_upload**](docs/FileApi.md#file_upload) | **POST** /File/{appKey}/Upload | 上传文件
103
- *ZSGFClient::FileApi* | [**files**](docs/FileApi.md#files) | **GET** /File/{appKey} | 获取文件列表
104
- *ZSGFClient::OAuthApi* | [**o_auth_authorize**](docs/OAuthApi.md#o_auth_authorize) | **POST** /OAuth/{appKey}/Authorize | 获取access_token
105
- *ZSGFClient::OAuthApi* | [**o_auth_consents**](docs/OAuthApi.md#o_auth_consents) | **GET** /OAuth/{appKey}/Consents | 授权记录
106
- *ZSGFClient::OAuthApi* | [**o_auth_delete_consent**](docs/OAuthApi.md#o_auth_delete_consent) | **DELETE** /OAuth/{appKey}/Consents/{id} | 删除授权记录
107
- *ZSGFClient::OAuthApi* | [**o_auth_grant_code**](docs/OAuthApi.md#o_auth_grant_code) | **POST** /OAuth/{appKey}/GrantCode | 申请授权码
108
- *ZSGFClient::OAuthApi* | [**o_auth_profile**](docs/OAuthApi.md#o_auth_profile) | **GET** /OAuth/{appKey}/Profile | 获取个人资料
109
- *ZSGFClient::OrderApi* | [**order**](docs/OrderApi.md#order) | **GET** /Order/{appKey}/{id} | 获取订单详情
110
- *ZSGFClient::OrderApi* | [**order_create**](docs/OrderApi.md#order_create) | **POST** /Order/{appKey}/Create | 创建订单
111
- *ZSGFClient::OrderApi* | [**orders**](docs/OrderApi.md#orders) | **GET** /Order/{appKey} | 获取订单列表
112
- *ZSGFClient::ProjectApi* | [**project**](docs/ProjectApi.md#project) | **GET** /Project/{id} | 项目详情
113
- *ZSGFClient::ProjectApi* | [**project_delete**](docs/ProjectApi.md#project_delete) | **DELETE** /Project/{id} | 删除项目
114
- *ZSGFClient::ProjectApi* | [**project_post**](docs/ProjectApi.md#project_post) | **POST** /Project | 创建项目
115
- *ZSGFClient::ProjectApi* | [**project_put**](docs/ProjectApi.md#project_put) | **PUT** /Project/{id} | 更新项目
116
- *ZSGFClient::ProjectApi* | [**projects**](docs/ProjectApi.md#projects) | **GET** /Project | 项目列表
117
- *ZSGFClient::ServiceSettingApi* | [**service_setting**](docs/ServiceSettingApi.md#service_setting) | **GET** /ServiceSetting/{id} | 获取配置详情
118
- *ZSGFClient::ServiceSettingApi* | [**service_setting_delete**](docs/ServiceSettingApi.md#service_setting_delete) | **DELETE** /ServiceSetting/{id} | 删除配置
119
- *ZSGFClient::ServiceSettingApi* | [**service_setting_group**](docs/ServiceSettingApi.md#service_setting_group) | **GET** /ServiceSetting/Groups/{id} | 获取服务分组详情
120
- *ZSGFClient::ServiceSettingApi* | [**service_setting_group_delete**](docs/ServiceSettingApi.md#service_setting_group_delete) | **DELETE** /ServiceSetting/Groups/{id} | 删除服务分组
121
- *ZSGFClient::ServiceSettingApi* | [**service_setting_group_post**](docs/ServiceSettingApi.md#service_setting_group_post) | **POST** /ServiceSetting/Groups | 添加服务分组
122
- *ZSGFClient::ServiceSettingApi* | [**service_setting_group_put**](docs/ServiceSettingApi.md#service_setting_group_put) | **PUT** /ServiceSetting/Groups/{id} | 更新服务分组
123
- *ZSGFClient::ServiceSettingApi* | [**service_setting_groups**](docs/ServiceSettingApi.md#service_setting_groups) | **GET** /ServiceSetting/Groups | 获取服务分组列表
124
- *ZSGFClient::ServiceSettingApi* | [**service_setting_item**](docs/ServiceSettingApi.md#service_setting_item) | **GET** /ServiceSetting/Items/{id} | 服务配置详情
125
- *ZSGFClient::ServiceSettingApi* | [**service_setting_item_delete**](docs/ServiceSettingApi.md#service_setting_item_delete) | **DELETE** /ServiceSetting/Items/{id} | 删除服务配置
126
- *ZSGFClient::ServiceSettingApi* | [**service_setting_item_post**](docs/ServiceSettingApi.md#service_setting_item_post) | **POST** /ServiceSetting/Items | 添加服务配置
127
- *ZSGFClient::ServiceSettingApi* | [**service_setting_item_put**](docs/ServiceSettingApi.md#service_setting_item_put) | **PUT** /ServiceSetting/Items/{id} | 更新服务配置
128
- *ZSGFClient::ServiceSettingApi* | [**service_setting_items**](docs/ServiceSettingApi.md#service_setting_items) | **GET** /ServiceSetting/Items | 服务配置列表
129
- *ZSGFClient::ServiceSettingApi* | [**service_setting_post**](docs/ServiceSettingApi.md#service_setting_post) | **POST** /ServiceSetting | 增加配置
130
- *ZSGFClient::ServiceSettingApi* | [**service_setting_provider**](docs/ServiceSettingApi.md#service_setting_provider) | **GET** /ServiceSetting/Providers/{id} | 获取服务商详情
131
- *ZSGFClient::ServiceSettingApi* | [**service_setting_provider_delete**](docs/ServiceSettingApi.md#service_setting_provider_delete) | **DELETE** /ServiceSetting/Providers/{id} | 删除服务商
132
- *ZSGFClient::ServiceSettingApi* | [**service_setting_provider_post**](docs/ServiceSettingApi.md#service_setting_provider_post) | **POST** /ServiceSetting/Providers | 添加服务商
133
- *ZSGFClient::ServiceSettingApi* | [**service_setting_provider_put**](docs/ServiceSettingApi.md#service_setting_provider_put) | **PUT** /ServiceSetting/Providers/{id} | 更新服务商
134
- *ZSGFClient::ServiceSettingApi* | [**service_setting_providers**](docs/ServiceSettingApi.md#service_setting_providers) | **GET** /ServiceSetting/Providers | 获取服务商列表
135
- *ZSGFClient::ServiceSettingApi* | [**service_setting_put**](docs/ServiceSettingApi.md#service_setting_put) | **PUT** /ServiceSetting/{id} | 更新配置
136
- *ZSGFClient::ServiceSettingApi* | [**service_settings**](docs/ServiceSettingApi.md#service_settings) | **GET** /ServiceSetting | 获取配置列表
137
- *ZSGFClient::StorageApi* | [**storage_aggregate**](docs/StorageApi.md#storage_aggregate) | **GET** /Storage/{appKey}/{table}/Aggregate | 聚合查询
138
- *ZSGFClient::StorageApi* | [**storage_clear**](docs/StorageApi.md#storage_clear) | **DELETE** /Storage/{appKey}/{table}/Clear | 清空表数据
139
- *ZSGFClient::StorageApi* | [**storage_delete**](docs/StorageApi.md#storage_delete) | **DELETE** /Storage/{appKey}/{table}/{id} | 删除数据
140
- *ZSGFClient::StorageApi* | [**storage_delete_index**](docs/StorageApi.md#storage_delete_index) | **DELETE** /Storage/{appKey}/{table}/indexes | 删除索引
141
- *ZSGFClient::StorageApi* | [**storage_detail**](docs/StorageApi.md#storage_detail) | **GET** /Storage/{appKey}/{table}/{id} | 数据详情
142
- *ZSGFClient::StorageApi* | [**storage_execute_function**](docs/StorageApi.md#storage_execute_function) | **GET** /Storage/{appKey}/ExecuteFunction | 执行函数
143
- *ZSGFClient::StorageApi* | [**storage_export**](docs/StorageApi.md#storage_export) | **GET** /Storage/{appKey}/{table}/Export | 导出数据
144
- *ZSGFClient::StorageApi* | [**storage_import**](docs/StorageApi.md#storage_import) | **POST** /Storage/{appKey}/{table}/Import | 导入数据
145
- *ZSGFClient::StorageApi* | [**storage_indexes**](docs/StorageApi.md#storage_indexes) | **GET** /Storage/{appKey}/{table}/Indexes | 获取索引
146
- *ZSGFClient::StorageApi* | [**storage_list**](docs/StorageApi.md#storage_list) | **GET** /Storage/{appKey}/{table} | 查询数据
147
- *ZSGFClient::StorageApi* | [**storage_post**](docs/StorageApi.md#storage_post) | **POST** /Storage/{appKey}/{table} | 添加数据
148
- *ZSGFClient::StorageApi* | [**storage_post_index**](docs/StorageApi.md#storage_post_index) | **POST** /Storage/{appKey}/{table}/indexes | 添加索引
149
- *ZSGFClient::StorageApi* | [**storage_put**](docs/StorageApi.md#storage_put) | **PUT** /Storage/{appKey}/{table}/{id} | 更新数据
150
- *ZSGFClient::StorageApi* | [**storage_remove**](docs/StorageApi.md#storage_remove) | **DELETE** /Storage/{appKey}/{table}/Remove | 删除表
151
- *ZSGFClient::StorageApi* | [**storage_stats**](docs/StorageApi.md#storage_stats) | **GET** /Storage/{appKey}/{table}/Stats | 数据表统计
152
- *ZSGFClient::StorageApi* | [**storage_tables**](docs/StorageApi.md#storage_tables) | **GET** /Storage/{appKey}/Tables | 获取数据表
153
- *ZSGFClient::SystemFileApi* | [**system_file_create_folder**](docs/SystemFileApi.md#system_file_create_folder) | **POST** /SystemFile/CreateFolder | 创建文件夹
154
- *ZSGFClient::SystemFileApi* | [**system_file_delete**](docs/SystemFileApi.md#system_file_delete) | **DELETE** /SystemFile | 删除文件
155
- *ZSGFClient::SystemFileApi* | [**system_file_rename**](docs/SystemFileApi.md#system_file_rename) | **POST** /SystemFile/Rename | 重命名文件
156
- *ZSGFClient::SystemFileApi* | [**system_file_upload**](docs/SystemFileApi.md#system_file_upload) | **POST** /SystemFile | 上传文件
157
- *ZSGFClient::SystemFileApi* | [**system_files**](docs/SystemFileApi.md#system_files) | **GET** /SystemFile | 获取文件列表
158
- *ZSGFClient::TeamApi* | [**team_delete**](docs/TeamApi.md#team_delete) | **DELETE** /Team/{id} | 删除团队
159
- *ZSGFClient::TeamApi* | [**team_post**](docs/TeamApi.md#team_post) | **POST** /Team | 创建团队
160
- *ZSGFClient::TeamApi* | [**team_put**](docs/TeamApi.md#team_put) | **PUT** /Team/{id} | 更新团队信息
161
- *ZSGFClient::TeamApi* | [**teams**](docs/TeamApi.md#teams) | **GET** /Team | 获取团队列表
162
- *ZSGFClient::UserApi* | [**user**](docs/UserApi.md#user) | **GET** /User/{appKey}/{id} | 获取用户详情
163
- *ZSGFClient::UserApi* | [**user_clear**](docs/UserApi.md#user_clear) | **DELETE** /User/{appKey}/Clear | 清空用户数据
164
- *ZSGFClient::UserApi* | [**user_common_interests**](docs/UserApi.md#user_common_interests) | **GET** /User/{appKey}/Friends/CommonInterests | 有共同爱好的用户推荐
165
- *ZSGFClient::UserApi* | [**user_delete**](docs/UserApi.md#user_delete) | **DELETE** /User/{appKey}/{id} | 删除用户
166
- *ZSGFClient::UserApi* | [**user_email_sign_in**](docs/UserApi.md#user_email_sign_in) | **POST** /User/{appKey}/EmailSignIn | 邮箱登录
167
- *ZSGFClient::UserApi* | [**user_email_sign_up**](docs/UserApi.md#user_email_sign_up) | **POST** /User/{appKey}/EmailSignUp | 邮箱注册
168
- *ZSGFClient::UserApi* | [**user_export**](docs/UserApi.md#user_export) | **GET** /User/{appKey}/Export | 导出用户数据
169
- *ZSGFClient::UserApi* | [**user_follow_user**](docs/UserApi.md#user_follow_user) | **POST** /User/{appKey}/Follower/{userId} | 关注用户
170
- *ZSGFClient::UserApi* | [**user_follower_put**](docs/UserApi.md#user_follower_put) | **PUT** /User/{appKey}/Follower/{id} | 更新粉丝
171
- *ZSGFClient::UserApi* | [**user_followers**](docs/UserApi.md#user_followers) | **GET** /User/{appKey}/Followers | 获取我的粉丝列表
172
- *ZSGFClient::UserApi* | [**user_following**](docs/UserApi.md#user_following) | **GET** /User/{appKey}/Following | 获取我的关注列表
173
- *ZSGFClient::UserApi* | [**user_friends_near_by**](docs/UserApi.md#user_friends_near_by) | **GET** /User/{appKey}/Friends/NearBy | 附近的用户推荐
174
- *ZSGFClient::UserApi* | [**user_import**](docs/UserApi.md#user_import) | **POST** /User/{appKey}/Import | 导入用户数据
175
- *ZSGFClient::UserApi* | [**user_location**](docs/UserApi.md#user_location) | **GET** /User/{appKey}/Location/{id} | 获取位置详情
176
- *ZSGFClient::UserApi* | [**user_location_delete**](docs/UserApi.md#user_location_delete) | **DELETE** /User/{appKey}/Location/{id} | 删除位置
177
- *ZSGFClient::UserApi* | [**user_location_post**](docs/UserApi.md#user_location_post) | **POST** /User/{appKey}/Location | 添加位置
178
- *ZSGFClient::UserApi* | [**user_location_put**](docs/UserApi.md#user_location_put) | **PUT** /User/{appKey}/Location/{id} | 更新位置
179
- *ZSGFClient::UserApi* | [**user_locations**](docs/UserApi.md#user_locations) | **GET** /User/{appKey}/Locations | 获取位置列表
180
- *ZSGFClient::UserApi* | [**user_mutual_followers**](docs/UserApi.md#user_mutual_followers) | **GET** /User/{appKey}/Friends/MutualFollowers | 有共同粉丝的用户推荐
181
- *ZSGFClient::UserApi* | [**user_mutual_followings**](docs/UserApi.md#user_mutual_followings) | **GET** /User/{appKey}/Friends/MutualFollowings | 有共同关注的用户推荐
182
- *ZSGFClient::UserApi* | [**user_o_auth_account_bind**](docs/UserApi.md#user_o_auth_account_bind) | **POST** /User/{appKey}/OAuthAccountBind | 外部账号 绑定
183
- *ZSGFClient::UserApi* | [**user_o_auth_account_sign_in**](docs/UserApi.md#user_o_auth_account_sign_in) | **POST** /User/{appKey}/OAuthAccountSignIn | 外部账号 登录
184
- *ZSGFClient::UserApi* | [**user_o_auth_accounts**](docs/UserApi.md#user_o_auth_accounts) | **GET** /User/{appKey}/OAuthAccounts | 外部账号 绑定列表
185
- *ZSGFClient::UserApi* | [**user_o_auth_accounts_put_bind**](docs/UserApi.md#user_o_auth_accounts_put_bind) | **PUT** /User/{appKey}/OAuthAccounts/{id} | 外部账号 更新绑定
186
- *ZSGFClient::UserApi* | [**user_o_auth_accounts_un_bind**](docs/UserApi.md#user_o_auth_accounts_un_bind) | **DELETE** /User/{appKey}/OAuthAccounts/{id} | 外部账号 删除绑定
187
- *ZSGFClient::UserApi* | [**user_phone_sign_in**](docs/UserApi.md#user_phone_sign_in) | **POST** /User/{appKey}/PhoneSignIn | 手机登录
188
- *ZSGFClient::UserApi* | [**user_phone_sign_up**](docs/UserApi.md#user_phone_sign_up) | **POST** /User/{appKey}/PhoneSignUp | 手机注册
189
- *ZSGFClient::UserApi* | [**user_profile**](docs/UserApi.md#user_profile) | **GET** /User/{appKey}/Profile | 获取个人资料
190
- *ZSGFClient::UserApi* | [**user_put**](docs/UserApi.md#user_put) | **PUT** /User/{appKey}/{id} | 更新用户信息
191
- *ZSGFClient::UserApi* | [**user_qr_code_pre_sign_in**](docs/UserApi.md#user_qr_code_pre_sign_in) | **POST** /User/{appKey}/QRCodePreSignIn | 微信小程序 - 预登陆
192
- *ZSGFClient::UserApi* | [**user_qr_code_scan**](docs/UserApi.md#user_qr_code_scan) | **POST** /User/{appKey}/QRCodeScan | 微信小程序 - 扫码
193
- *ZSGFClient::UserApi* | [**user_qr_code_sign_in**](docs/UserApi.md#user_qr_code_sign_in) | **POST** /User/{appKey}/QRCodeSignIn | 微信小程序 - 网页登录
194
- *ZSGFClient::UserApi* | [**user_qr_code_sign_up**](docs/UserApi.md#user_qr_code_sign_up) | **POST** /User/{appKey}/QRCodeSignUp | 微信小程序 - 注册
195
- *ZSGFClient::UserApi* | [**user_reset_pwd**](docs/UserApi.md#user_reset_pwd) | **POST** /User/{appKey}/ResetPwd | 重置密码
196
- *ZSGFClient::UserApi* | [**user_send_email_code**](docs/UserApi.md#user_send_email_code) | **POST** /User/{appKey}/SendEmailCode | 发送邮箱验证码
197
- *ZSGFClient::UserApi* | [**user_send_sms_code**](docs/UserApi.md#user_send_sms_code) | **POST** /User/{appKey}/SendSMSCode | 发送手机验证码
198
- *ZSGFClient::UserApi* | [**user_sign_in**](docs/UserApi.md#user_sign_in) | **POST** /User/{appKey}/SignIn | 账号密码 登录
199
- *ZSGFClient::UserApi* | [**user_sign_up**](docs/UserApi.md#user_sign_up) | **POST** /User/{appKey}/SignUp | 账号密码 注册
200
- *ZSGFClient::UserApi* | [**user_two_factor_auth**](docs/UserApi.md#user_two_factor_auth) | **GET** /User/{appKey}/TwoFactorAuth | 双因素验证
201
- *ZSGFClient::UserApi* | [**user_unfollow_user**](docs/UserApi.md#user_unfollow_user) | **DELETE** /User/{appKey}/Follower/{userId} | 取消关注
202
- *ZSGFClient::UserApi* | [**user_union_id_sign_in**](docs/UserApi.md#user_union_id_sign_in) | **POST** /User/{appKey}/UnionIDSignIn | UnionID登录
203
- *ZSGFClient::UserApi* | [**user_union_id_sign_up**](docs/UserApi.md#user_union_id_sign_up) | **POST** /User/{appKey}/UnionIDSignUp | UnionID注册
204
- *ZSGFClient::UserApi* | [**user_update_profile**](docs/UserApi.md#user_update_profile) | **PUT** /User/{appKey}/Profile | 更新个人资料
205
- *ZSGFClient::UserApi* | [**users**](docs/UserApi.md#users) | **GET** /User/{appKey} | 获取用户列表
206
- *ZSGFClient::UserCurrencyApi* | [**user_currencies**](docs/UserCurrencyApi.md#user_currencies) | **GET** /UserCurrency/{appKey}/{id} | 获取用户资产
207
- *ZSGFClient::UserCurrencyApi* | [**user_currency_consume**](docs/UserCurrencyApi.md#user_currency_consume) | **POST** /UserCurrency/{appKey}/CurrencyConsume | 消费虚拟币
208
- *ZSGFClient::UserCurrencyApi* | [**user_currency_exchange**](docs/UserCurrencyApi.md#user_currency_exchange) | **POST** /UserCurrency/{appKey}/CurrencyExchange | 兑换虚拟币
209
- *ZSGFClient::UserCurrencyApi* | [**user_currency_recharge**](docs/UserCurrencyApi.md#user_currency_recharge) | **POST** /UserCurrency/{appKey}/CurrencyRecharge | 充值虚拟币
210
- *ZSGFClient::UserCurrencyApi* | [**user_currency_transactions**](docs/UserCurrencyApi.md#user_currency_transactions) | **GET** /UserCurrency/{appKey}/CurrencyTransactions | 虚拟币交易记录
211
- *ZSGFClient::UserSettingApi* | [**user_setting**](docs/UserSettingApi.md#user_setting) | **GET** /UserSetting/{appKey}/{id} | 获取用户配置项详情
212
- *ZSGFClient::UserSettingApi* | [**user_setting_delete**](docs/UserSettingApi.md#user_setting_delete) | **DELETE** /UserSetting/{appKey}/{id} | 删除用户配置项
213
- *ZSGFClient::UserSettingApi* | [**user_setting_post**](docs/UserSettingApi.md#user_setting_post) | **POST** /UserSetting/{appKey} | 添加用户配置项
214
- *ZSGFClient::UserSettingApi* | [**user_setting_put**](docs/UserSettingApi.md#user_setting_put) | **PUT** /UserSetting/{appKey}/{id} | 更新用户配置项
215
- *ZSGFClient::UserSettingApi* | [**user_settings**](docs/UserSettingApi.md#user_settings) | **GET** /UserSetting/{appKey} | 获取用户配置列表
216
- *ZSGFClient::WechatApi* | [**wechat_decrypt**](docs/WechatApi.md#wechat_decrypt) | **GET** /Wechat/{appKey}/Decrypt | 小程序-解密数据
217
- *ZSGFClient::WechatApi* | [**wechat_generate_scheme**](docs/WechatApi.md#wechat_generate_scheme) | **POST** /Wechat/{appKey}/GenerateScheme | 小程序-生成scheme码(该接口用于获取小程序 scheme 码,适用于短信、邮件、外部网页、微信内等拉起小程序的业务场景)
218
- *ZSGFClient::WechatApi* | [**wechat_js_code2_session**](docs/WechatApi.md#wechat_js_code2_session) | **GET** /Wechat/{appKey}/JSCode2Session | 小程序-登录凭证校验
219
- *ZSGFClient::WechatApi* | [**wechat_js_config**](docs/WechatApi.md#wechat_js_config) | **GET** /Wechat/{appKey}/JSConfig | 公众号H5-JS SDK Config
220
- *ZSGFClient::WechatApi* | [**wechat_subscribe_msg**](docs/WechatApi.md#wechat_subscribe_msg) | **POST** /Wechat/{appKey}/SubscribeMSG | 公众号H5-发送一次性订阅消息
221
- *ZSGFClient::WechatApi* | [**wechat_subscribe_send**](docs/WechatApi.md#wechat_subscribe_send) | **POST** /Wechat/{appKey}/SubscribeSend | 小程序-发送订阅消息
222
- *ZSGFClient::WechatApi* | [**wechat_url_link_generate**](docs/WechatApi.md#wechat_url_link_generate) | **POST** /Wechat/{appKey}/UrlLinkGenerate | 小程序-生成网页跳转地址(获取小程序 URL Link,适用于短信、邮件、网页、微信内等拉起小程序的业务场景)
223
- *ZSGFClient::WechatApi* | [**wechat_user_info**](docs/WechatApi.md#wechat_user_info) | **GET** /Wechat/{appKey}/UserInfo | 公众号H5-获取用户UnionID
224
- *ZSGFClient::WechatApi* | [**wechat_wxa_code_get**](docs/WechatApi.md#wechat_wxa_code_get) | **POST** /Wechat/{appKey}/WXACodeGet | 小程序-获取小程序码
225
- *ZSGFClient::WechatApi* | [**wechat_wxa_code_get_unlimited**](docs/WechatApi.md#wechat_wxa_code_get_unlimited) | **POST** /Wechat/{appKey}/WXACodeGetUnlimited | 小程序-获取小程序码(无限制)
226
-
227
-
228
- ## 模型文档
229
-
230
- - [ZSGFClient::AccessTokenListResult](docs/AccessTokenListResult.md)
231
- - [ZSGFClient::AccessTokenListResultApiResponse](docs/AccessTokenListResultApiResponse.md)
232
- - [ZSGFClient::AccessTokenPostRequest](docs/AccessTokenPostRequest.md)
233
- - [ZSGFClient::AccessTokenPutRequest](docs/AccessTokenPutRequest.md)
234
- - [ZSGFClient::AlipayCreateOrderPagePayRequest](docs/AlipayCreateOrderPagePayRequest.md)
235
- - [ZSGFClient::AlipayCreateOrderRequest](docs/AlipayCreateOrderRequest.md)
236
- - [ZSGFClient::AlipayCreateOrderWapPayRequest](docs/AlipayCreateOrderWapPayRequest.md)
237
- - [ZSGFClient::AlipayTradeQueryResponse](docs/AlipayTradeQueryResponse.md)
238
- - [ZSGFClient::AlipayTradeQueryResponseApiResponse](docs/AlipayTradeQueryResponseApiResponse.md)
239
- - [ZSGFClient::AlipayTradeRefundResponse](docs/AlipayTradeRefundResponse.md)
240
- - [ZSGFClient::AlipayTradeRefundResponseApiResponse](docs/AlipayTradeRefundResponseApiResponse.md)
241
- - [ZSGFClient::App](docs/App.md)
242
- - [ZSGFClient::AppApiResponse](docs/AppApiResponse.md)
243
- - [ZSGFClient::AppCheckVersionResult](docs/AppCheckVersionResult.md)
244
- - [ZSGFClient::AppCheckVersionResultApiResponse](docs/AppCheckVersionResultApiResponse.md)
245
- - [ZSGFClient::AppInfoItem](docs/AppInfoItem.md)
246
- - [ZSGFClient::AppInfoResult](docs/AppInfoResult.md)
247
- - [ZSGFClient::AppInfoResultApiResponse](docs/AppInfoResultApiResponse.md)
248
- - [ZSGFClient::AppListResult](docs/AppListResult.md)
249
- - [ZSGFClient::AppListResultApiResponse](docs/AppListResultApiResponse.md)
250
- - [ZSGFClient::AppPostResult](docs/AppPostResult.md)
251
- - [ZSGFClient::AppPostResultApiResponse](docs/AppPostResultApiResponse.md)
252
- - [ZSGFClient::AppProperty](docs/AppProperty.md)
253
- - [ZSGFClient::AppSetting](docs/AppSetting.md)
254
- - [ZSGFClient::AppSettingApiResponse](docs/AppSettingApiResponse.md)
255
- - [ZSGFClient::AppSettingGroupPostResult](docs/AppSettingGroupPostResult.md)
256
- - [ZSGFClient::AppSettingGroupPostResultApiResponse](docs/AppSettingGroupPostResultApiResponse.md)
257
- - [ZSGFClient::AppSettingItemPostResult](docs/AppSettingItemPostResult.md)
258
- - [ZSGFClient::AppSettingItemPostResultApiResponse](docs/AppSettingItemPostResultApiResponse.md)
259
- - [ZSGFClient::AppSettingListApiResponse](docs/AppSettingListApiResponse.md)
260
- - [ZSGFClient::AppSettingProviderPostResult](docs/AppSettingProviderPostResult.md)
261
- - [ZSGFClient::AppSettingProviderPostResultApiResponse](docs/AppSettingProviderPostResultApiResponse.md)
262
- - [ZSGFClient::AppSettingSettingPostResult](docs/AppSettingSettingPostResult.md)
263
- - [ZSGFClient::AppSettingSettingPostResultApiResponse](docs/AppSettingSettingPostResultApiResponse.md)
264
- - [ZSGFClient::AppUserConsentModel](docs/AppUserConsentModel.md)
265
- - [ZSGFClient::AppUserConsentModelListApiResponse](docs/AppUserConsentModelListApiResponse.md)
266
- - [ZSGFClient::AppUserListResponse](docs/AppUserListResponse.md)
267
- - [ZSGFClient::AppUserResetPwdRequest](docs/AppUserResetPwdRequest.md)
268
- - [ZSGFClient::AuthorizePolicy](docs/AuthorizePolicy.md)
269
- - [ZSGFClient::AuthorizePolicyApiResponse](docs/AuthorizePolicyApiResponse.md)
270
- - [ZSGFClient::AuthorizePolicyListApiResponse](docs/AuthorizePolicyListApiResponse.md)
271
- - [ZSGFClient::AuthorizeResult](docs/AuthorizeResult.md)
272
- - [ZSGFClient::AuthorizeResultApiResponse](docs/AuthorizeResultApiResponse.md)
273
- - [ZSGFClient::BkAgentRespInfo](docs/BkAgentRespInfo.md)
274
- - [ZSGFClient::BooleanApiResponse](docs/BooleanApiResponse.md)
275
- - [ZSGFClient::ChargeInfo](docs/ChargeInfo.md)
276
- - [ZSGFClient::CommonFriendModel](docs/CommonFriendModel.md)
277
- - [ZSGFClient::ContributeDetail](docs/ContributeDetail.md)
278
- - [ZSGFClient::CreateOrderRequest](docs/CreateOrderRequest.md)
279
- - [ZSGFClient::CreateOrderResult](docs/CreateOrderResult.md)
280
- - [ZSGFClient::CreateOrderResultApiResponse](docs/CreateOrderResultApiResponse.md)
281
- - [ZSGFClient::CreatePostResult](docs/CreatePostResult.md)
282
- - [ZSGFClient::CreatePostResultApiResponse](docs/CreatePostResultApiResponse.md)
283
- - [ZSGFClient::Currency](docs/Currency.md)
284
- - [ZSGFClient::CurrencyApiResponse](docs/CurrencyApiResponse.md)
285
- - [ZSGFClient::CurrencyConsumeRequest](docs/CurrencyConsumeRequest.md)
286
- - [ZSGFClient::CurrencyExchangeRate](docs/CurrencyExchangeRate.md)
287
- - [ZSGFClient::CurrencyExchangeRateApiResponse](docs/CurrencyExchangeRateApiResponse.md)
288
- - [ZSGFClient::CurrencyListApiResponse](docs/CurrencyListApiResponse.md)
289
- - [ZSGFClient::CurrencyTransaction](docs/CurrencyTransaction.md)
290
- - [ZSGFClient::CurrencyTransactionListApiResponse](docs/CurrencyTransactionListApiResponse.md)
291
- - [ZSGFClient::DirectoryItem](docs/DirectoryItem.md)
292
- - [ZSGFClient::EmailSignInRequest](docs/EmailSignInRequest.md)
293
- - [ZSGFClient::EmailSignUpRequest](docs/EmailSignUpRequest.md)
294
- - [ZSGFClient::EnterprisePayInfo](docs/EnterprisePayInfo.md)
295
- - [ZSGFClient::ExchangeCurrencyRequest](docs/ExchangeCurrencyRequest.md)
296
- - [ZSGFClient::ExchangeRatePutRequest](docs/ExchangeRatePutRequest.md)
297
- - [ZSGFClient::ExecuteFunctionRequest](docs/ExecuteFunctionRequest.md)
298
- - [ZSGFClient::FileItem](docs/FileItem.md)
299
- - [ZSGFClient::FileListResult](docs/FileListResult.md)
300
- - [ZSGFClient::FileListResultApiResponse](docs/FileListResultApiResponse.md)
301
- - [ZSGFClient::FollowerModel](docs/FollowerModel.md)
302
- - [ZSGFClient::FollowerPutModel](docs/FollowerPutModel.md)
303
- - [ZSGFClient::FulfillmentDetail](docs/FulfillmentDetail.md)
304
- - [ZSGFClient::GeoLocationModel](docs/GeoLocationModel.md)
305
- - [ZSGFClient::GeoLocationModelApiResponse](docs/GeoLocationModelApiResponse.md)
306
- - [ZSGFClient::GeoLocationResponseModel](docs/GeoLocationResponseModel.md)
307
- - [ZSGFClient::GoodsDetail](docs/GoodsDetail.md)
308
- - [ZSGFClient::GrantRequest](docs/GrantRequest.md)
309
- - [ZSGFClient::GrantResult](docs/GrantResult.md)
310
- - [ZSGFClient::GrantResultApiResponse](docs/GrantResultApiResponse.md)
311
- - [ZSGFClient::HbFqPayInfo](docs/HbFqPayInfo.md)
312
- - [ZSGFClient::Int64ApiResponse](docs/Int64ApiResponse.md)
313
- - [ZSGFClient::IntactChargeInfo](docs/IntactChargeInfo.md)
314
- - [ZSGFClient::ListResponseItem](docs/ListResponseItem.md)
315
- - [ZSGFClient::ListResponseItemListApiResponse](docs/ListResponseItemListApiResponse.md)
316
- - [ZSGFClient::OAuthAccountBindRequest](docs/OAuthAccountBindRequest.md)
317
- - [ZSGFClient::OAuthAccountPutBindRequest](docs/OAuthAccountPutBindRequest.md)
318
- - [ZSGFClient::OAuthAccountSignInRequest](docs/OAuthAccountSignInRequest.md)
319
- - [ZSGFClient::ObjectApiResponse](docs/ObjectApiResponse.md)
320
- - [ZSGFClient::ObjectListApiResponse](docs/ObjectListApiResponse.md)
321
- - [ZSGFClient::Order](docs/Order.md)
322
- - [ZSGFClient::OrderApiResponse](docs/OrderApiResponse.md)
323
- - [ZSGFClient::OrderListResult](docs/OrderListResult.md)
324
- - [ZSGFClient::OrderListResultApiResponse](docs/OrderListResultApiResponse.md)
325
- - [ZSGFClient::PaymentInfoWithId](docs/PaymentInfoWithId.md)
326
- - [ZSGFClient::PhoneSignInRequest](docs/PhoneSignInRequest.md)
327
- - [ZSGFClient::PhoneSignUpRequest](docs/PhoneSignUpRequest.md)
328
- - [ZSGFClient::PostIndexRequest](docs/PostIndexRequest.md)
329
- - [ZSGFClient::PostResult](docs/PostResult.md)
330
- - [ZSGFClient::PostResultApiResponse](docs/PostResultApiResponse.md)
331
- - [ZSGFClient::PresetPayToolInfo](docs/PresetPayToolInfo.md)
332
- - [ZSGFClient::ProfileResult](docs/ProfileResult.md)
333
- - [ZSGFClient::ProfileResultApiResponse](docs/ProfileResultApiResponse.md)
334
- - [ZSGFClient::Project](docs/Project.md)
335
- - [ZSGFClient::ProjectApiResponse](docs/ProjectApiResponse.md)
336
- - [ZSGFClient::ProjectListResult](docs/ProjectListResult.md)
337
- - [ZSGFClient::ProjectListResultApiResponse](docs/ProjectListResultApiResponse.md)
338
- - [ZSGFClient::QRCodePreSignInRequest](docs/QRCodePreSignInRequest.md)
339
- - [ZSGFClient::QRCodeScanRequest](docs/QRCodeScanRequest.md)
340
- - [ZSGFClient::QRCodeSignInRequest](docs/QRCodeSignInRequest.md)
341
- - [ZSGFClient::QRCodeSignUpRequest](docs/QRCodeSignUpRequest.md)
342
- - [ZSGFClient::RechargePointRequest](docs/RechargePointRequest.md)
343
- - [ZSGFClient::RecommendFriend](docs/RecommendFriend.md)
344
- - [ZSGFClient::RefundChargeInfo](docs/RefundChargeInfo.md)
345
- - [ZSGFClient::RefundSubFee](docs/RefundSubFee.md)
346
- - [ZSGFClient::ReturnPageNotifyRequest](docs/ReturnPageNotifyRequest.md)
347
- - [ZSGFClient::SendEmailCodeRequest](docs/SendEmailCodeRequest.md)
348
- - [ZSGFClient::SendSMSCodeRequest](docs/SendSMSCodeRequest.md)
349
- - [ZSGFClient::ServiceGroup](docs/ServiceGroup.md)
350
- - [ZSGFClient::ServiceGroupApiResponse](docs/ServiceGroupApiResponse.md)
351
- - [ZSGFClient::ServiceGroupListApiResponse](docs/ServiceGroupListApiResponse.md)
352
- - [ZSGFClient::ServiceItem](docs/ServiceItem.md)
353
- - [ZSGFClient::ServiceItemApiResponse](docs/ServiceItemApiResponse.md)
354
- - [ZSGFClient::ServiceItemListApiResponse](docs/ServiceItemListApiResponse.md)
355
- - [ZSGFClient::ServiceProvider](docs/ServiceProvider.md)
356
- - [ZSGFClient::ServiceProviderApiResponse](docs/ServiceProviderApiResponse.md)
357
- - [ZSGFClient::ServiceProviderListApiResponse](docs/ServiceProviderListApiResponse.md)
358
- - [ZSGFClient::ServiceSettingGroupPostResult](docs/ServiceSettingGroupPostResult.md)
359
- - [ZSGFClient::ServiceSettingGroupPostResultApiResponse](docs/ServiceSettingGroupPostResultApiResponse.md)
360
- - [ZSGFClient::ServiceSettingItemPostResult](docs/ServiceSettingItemPostResult.md)
361
- - [ZSGFClient::ServiceSettingItemPostResultApiResponse](docs/ServiceSettingItemPostResultApiResponse.md)
362
- - [ZSGFClient::ServiceSettingProviderPostResult](docs/ServiceSettingProviderPostResult.md)
363
- - [ZSGFClient::ServiceSettingProviderPostResultApiResponse](docs/ServiceSettingProviderPostResultApiResponse.md)
364
- - [ZSGFClient::ServiceSettingSettingPostResult](docs/ServiceSettingSettingPostResult.md)
365
- - [ZSGFClient::ServiceSettingSettingPostResultApiResponse](docs/ServiceSettingSettingPostResultApiResponse.md)
366
- - [ZSGFClient::Settings](docs/Settings.md)
367
- - [ZSGFClient::SettingsApiResponse](docs/SettingsApiResponse.md)
368
- - [ZSGFClient::SettingsListApiResponse](docs/SettingsListApiResponse.md)
369
- - [ZSGFClient::SetupCode](docs/SetupCode.md)
370
- - [ZSGFClient::SetupCodeApiResponse](docs/SetupCodeApiResponse.md)
371
- - [ZSGFClient::SignInRequest](docs/SignInRequest.md)
372
- - [ZSGFClient::SignUpRequest](docs/SignUpRequest.md)
373
- - [ZSGFClient::StorageListResult](docs/StorageListResult.md)
374
- - [ZSGFClient::StorageListResultApiResponse](docs/StorageListResultApiResponse.md)
375
- - [ZSGFClient::StringApiResponse](docs/StringApiResponse.md)
376
- - [ZSGFClient::StringListApiResponse](docs/StringListApiResponse.md)
377
- - [ZSGFClient::SubFee](docs/SubFee.md)
378
- - [ZSGFClient::SystemDirectoryItem](docs/SystemDirectoryItem.md)
379
- - [ZSGFClient::SystemFileItem](docs/SystemFileItem.md)
380
- - [ZSGFClient::SystemFileListResult](docs/SystemFileListResult.md)
381
- - [ZSGFClient::SystemFileListResultApiResponse](docs/SystemFileListResultApiResponse.md)
382
- - [ZSGFClient::TapPayInfo](docs/TapPayInfo.md)
383
- - [ZSGFClient::Team](docs/Team.md)
384
- - [ZSGFClient::TokenModel](docs/TokenModel.md)
385
- - [ZSGFClient::TokenModelApiResponse](docs/TokenModelApiResponse.md)
386
- - [ZSGFClient::TradeFundBill](docs/TradeFundBill.md)
387
- - [ZSGFClient::TradeSettleDetail](docs/TradeSettleDetail.md)
388
- - [ZSGFClient::TradeSettleInfo](docs/TradeSettleInfo.md)
389
- - [ZSGFClient::UnionIDSignInRequest](docs/UnionIDSignInRequest.md)
390
- - [ZSGFClient::UnionIDSignUpRequest](docs/UnionIDSignUpRequest.md)
391
- - [ZSGFClient::UpdateProfileRequest](docs/UpdateProfileRequest.md)
392
- - [ZSGFClient::User](docs/User.md)
393
- - [ZSGFClient::UserAccessToken](docs/UserAccessToken.md)
394
- - [ZSGFClient::UserApiResponse](docs/UserApiResponse.md)
395
- - [ZSGFClient::UserCommonInterestsResult](docs/UserCommonInterestsResult.md)
396
- - [ZSGFClient::UserCommonInterestsResultApiResponse](docs/UserCommonInterestsResultApiResponse.md)
397
- - [ZSGFClient::UserCurrency](docs/UserCurrency.md)
398
- - [ZSGFClient::UserCurrencyCurrencyTransResult](docs/UserCurrencyCurrencyTransResult.md)
399
- - [ZSGFClient::UserCurrencyCurrencyTransResultApiResponse](docs/UserCurrencyCurrencyTransResultApiResponse.md)
400
- - [ZSGFClient::UserCurrencyListApiResponse](docs/UserCurrencyListApiResponse.md)
401
- - [ZSGFClient::UserFollowersResult](docs/UserFollowersResult.md)
402
- - [ZSGFClient::UserFollowersResultApiResponse](docs/UserFollowersResultApiResponse.md)
403
- - [ZSGFClient::UserFollowingResult](docs/UserFollowingResult.md)
404
- - [ZSGFClient::UserFollowingResultApiResponse](docs/UserFollowingResultApiResponse.md)
405
- - [ZSGFClient::UserFriendsNearByResult](docs/UserFriendsNearByResult.md)
406
- - [ZSGFClient::UserFriendsNearByResultApiResponse](docs/UserFriendsNearByResultApiResponse.md)
407
- - [ZSGFClient::UserListResult](docs/UserListResult.md)
408
- - [ZSGFClient::UserListResultApiResponse](docs/UserListResultApiResponse.md)
409
- - [ZSGFClient::UserLocationPostResult](docs/UserLocationPostResult.md)
410
- - [ZSGFClient::UserLocationPostResultApiResponse](docs/UserLocationPostResultApiResponse.md)
411
- - [ZSGFClient::UserLocationsResult](docs/UserLocationsResult.md)
412
- - [ZSGFClient::UserLocationsResultApiResponse](docs/UserLocationsResultApiResponse.md)
413
- - [ZSGFClient::UserLogins](docs/UserLogins.md)
414
- - [ZSGFClient::UserLoginsListApiResponse](docs/UserLoginsListApiResponse.md)
415
- - [ZSGFClient::UserMutualFollowersResult](docs/UserMutualFollowersResult.md)
416
- - [ZSGFClient::UserMutualFollowersResultApiResponse](docs/UserMutualFollowersResultApiResponse.md)
417
- - [ZSGFClient::UserMutualFollowingsResult](docs/UserMutualFollowingsResult.md)
418
- - [ZSGFClient::UserMutualFollowingsResultApiResponse](docs/UserMutualFollowingsResultApiResponse.md)
419
- - [ZSGFClient::UserProfileResult](docs/UserProfileResult.md)
420
- - [ZSGFClient::UserProfileResultApiResponse](docs/UserProfileResultApiResponse.md)
421
- - [ZSGFClient::UserQRCodeScanResult](docs/UserQRCodeScanResult.md)
422
- - [ZSGFClient::UserQRCodeScanResultApiResponse](docs/UserQRCodeScanResultApiResponse.md)
423
- - [ZSGFClient::UserSetting](docs/UserSetting.md)
424
- - [ZSGFClient::UserSettingApiResponse](docs/UserSettingApiResponse.md)
425
- - [ZSGFClient::UserSettingListApiResponse](docs/UserSettingListApiResponse.md)
426
- - [ZSGFClient::UserSettingPostResult](docs/UserSettingPostResult.md)
427
- - [ZSGFClient::UserSettingPostResultApiResponse](docs/UserSettingPostResultApiResponse.md)
428
- - [ZSGFClient::VoucherDetail](docs/VoucherDetail.md)
429
- - [ZSGFClient::WechatJSConfigResult](docs/WechatJSConfigResult.md)
430
- - [ZSGFClient::WechatJSConfigResultApiResponse](docs/WechatJSConfigResultApiResponse.md)
296
+ ## 📖 API端点分类
297
+
298
+ ### 🏢 应用管理
299
+ - **应用信息**: 获取应用详情和配置
300
+
301
+ ### 👥 用户系统
302
+ - **认证注册**: 邮箱注册、手机注册、第三方登录
303
+ - **用户管理**: 资料管理、密码重置、账号注销
304
+ - **社交功能**: 关注/粉丝、好友推荐、位置服务
305
+
306
+ ### 💳 支付系统
307
+ - **支付宝**: 当面付、网页支付、手机支付
308
+ - **订单管理**: 订单创建、查询、退款
309
+
310
+ ### 📁 数据服务
311
+ - **文件存储**: 文件上传、下载、管理
312
+ - **数据存储**: CRUD操作、聚合查询
313
+ - **虚拟货币**: 充值、消费、交易记录
314
+
315
+ ### 🔗 第三方集成
316
+ - **微信服务**: 小程序、公众号、支付
317
+ - **钉钉集成**: 用户信息获取
318
+ - **OAuth**: 授权码、访问令牌
319
+
320
+ ### ⚙️ 系统功能
321
+ - **访问令牌**: 令牌管理、权限控制
322
+
323
+ ## 📝 完整API列表
324
+
325
+ ### 应用管理 (AppApi)
326
+ | 方法 | HTTP请求 | 描述 |
327
+ |------|----------|------|
328
+ | `app_info` | GET /App/{appKey}/Info | 获取应用详情 |
329
+
330
+ ### 用户管理 (UserApi)
331
+ | 方法 | HTTP请求 | 描述 |
332
+ |------|----------|------|
333
+ | `user_email_sign_up` | POST /User/{appKey}/EmailSignUp | 邮箱注册 |
334
+ | `user_email_sign_in` | POST /User/{appKey}/EmailSignIn | 邮箱登录 |
335
+ | `user_phone_sign_up` | POST /User/{appKey}/PhoneSignUp | 手机注册 |
336
+ | `user_phone_sign_in` | POST /User/{appKey}/PhoneSignIn | 手机登录 |
337
+ | `user_sign_up` | POST /User/{appKey}/SignUp | 通用注册 |
338
+ | `user_sign_in` | POST /User/{appKey}/SignIn | 密码登录 |
339
+ | `user_profile` | GET /User/{appKey}/Profile | 获取个人资料 |
340
+ | `user_update_profile` | PUT /User/{appKey}/Profile | 更新个人资料 |
341
+ | `user_reset_pwd` | POST /User/{appKey}/ResetPwd | 重置密码 |
342
+ | `user_reset_email` | PUT /User/{appKey}/ResetEmail | 重置邮箱 |
343
+ | `user_reset_phone` | PUT /User/{appKey}/ResetPhone | 重置手机号 |
344
+ | `user_send_email_code` | POST /User/{appKey}/SendEmailCode | 发送邮箱验证码 |
345
+ | `user_send_sms_code` | POST /User/{appKey}/SendSMSCode | 发送手机验证码 |
346
+ | `user_union_id_sign_up` | POST /User/{appKey}/UnionIDSignUp | UnionID注册 |
347
+ | `user_union_id_sign_in` | POST /User/{appKey}/UnionIDSignIn | UnionID登录 |
348
+ | `user_two_factor_auth` | GET /User/{appKey}/TwoFactorAuth | 二次验证 |
349
+ | `user_deactivate_hard` | DELETE /User/{appKey}/DeactivateHard | 注销账号 |
350
+
351
+ ### 虚拟货币 (UserCurrencyApi)
352
+ | 方法 | HTTP请求 | 描述 |
353
+ |------|----------|------|
354
+ | `user_currencies` | GET /UserCurrency/{appKey}/{id} | 获取用户资产 |
355
+ | `user_currency_recharge` | POST /UserCurrency/{appKey}/CurrencyRecharge | 充值虚拟币 |
356
+ | `user_currency_consume` | POST /UserCurrency/{appKey}/CurrencyConsume | 消费虚拟币 |
357
+ | `user_currency_exchange` | POST /UserCurrency/{appKey}/CurrencyExchange | 兑换虚拟币 |
358
+ | `user_currency_transactions` | GET /UserCurrency/{appKey}/CurrencyTransactions | 交易记录 |
359
+
360
+ ### 社交功能 (UserFriendsApi)
361
+ | 方法 | HTTP请求 | 描述 |
362
+ |------|----------|------|
363
+ | `user_follow_user` | POST /UserFriends/{appKey}/Follower/{userId} | 添加关注 |
364
+ | `user_unfollow_user` | DELETE /UserFriends/{appKey}/Follower/{userId} | 取消关注 |
365
+ | `user_followers` | GET /UserFriends/{appKey}/Followers | 获取粉丝列表 |
366
+ | `user_following` | GET /UserFriends/{appKey}/Following | 获取关注列表 |
367
+ | `user_mutual_followers` | GET /UserFriends/{appKey}/MutualFollowers | 共同粉丝 |
368
+ | `user_mutual_followings` | GET /UserFriends/{appKey}/MutualFollowings | 共同关注 |
369
+ | `user_common_interests` | GET /UserFriends/{appKey}/CommonInterests | 相似兴趣用户 |
370
+ | `user_friends_near_by` | GET /UserFriends/{appKey}/NearBy | 附近用户 |
371
+ | `user_profile_by_id` | GET /UserFriends/{appKey}/Profile/{userId} | 获取用户资料 |
372
+ | `user_follower_put` | PUT /UserFriends/{appKey}/Follower/{id} | 刷新粉丝数据 |
373
+
374
+ ### 位置服务 (UserLocationApi)
375
+ | 方法 | HTTP请求 | 描述 |
376
+ |------|----------|------|
377
+ | `user_locations` | GET /UserLocation/{appKey} | 获取位置列表 |
378
+ | `user_location` | GET /UserLocation/{appKey}/{id} | 获取位置详情 |
379
+ | `user_location_post` | POST /UserLocation/{appKey} | 添加位置 |
380
+ | `user_location_put` | PUT /UserLocation/{appKey}/{id} | 更新位置 |
381
+ | `user_location_delete` | DELETE /UserLocation/{appKey}/{id} | 删除位置 |
382
+
383
+ ### 文件存储 (FileApi)
384
+ | 方法 | HTTP请求 | 描述 |
385
+ |------|----------|------|
386
+ | `files` | GET /File/{appKey} | 获取文件列表 |
387
+ | `file_upload` | POST /File/{appKey}/Upload | 上传文件 |
388
+ | `file_create_folder` | POST /File/{appKey}/CreateFolder | 创建文件夹 |
389
+ | `file_rename` | POST /File/{appKey}/Rename | 重命名文件/文件夹 |
390
+ | `file_delete` | DELETE /File/{appKey} | 删除文件/文件夹 |
391
+
392
+ ### 数据存储 (StorageApi)
393
+ | 方法 | HTTP请求 | 描述 |
394
+ |------|----------|------|
395
+ | `storage_list` | GET /Storage/{appKey}/{table} | 查询数据 |
396
+ | `storage_detail` | GET /Storage/{appKey}/{table}/{id} | 数据详情 |
397
+ | `storage_post` | POST /Storage/{appKey}/{table} | 添加数据 |
398
+ | `storage_put` | PUT /Storage/{appKey}/{table}/{id} | 更新数据 |
399
+ | `storage_delete` | DELETE /Storage/{appKey}/{table}/{id} | 删除数据 |
400
+ | `storage_aggregate` | GET /Storage/{appKey}/{table}/Aggregate | 聚合查询 |
401
+
402
+ ### 支付宝支付 (AlipayApi)
403
+ | 方法 | HTTP请求 | 描述 |
404
+ |------|----------|------|
405
+ | `alipay_create_order` | POST /Alipay/{appKey}/CreateOrder | 创建当面付订单 |
406
+ | `alipay_create_order_page_pay` | POST /Alipay/{appKey}/CreateOrderPagePay | 创建PC支付订单 |
407
+ | `alipay_create_order_wap_pay` | POST /Alipay/{appKey}/CreateOrderWapPay | 创建WAP支付订单 |
408
+ | `alipay_order_detail` | GET /Alipay/{appKey}/OrderDetail | 获取订单详情 |
409
+ | `alipay_order_refund` | POST /Alipay/{appKey}/OrderRefund | 发起订单退款 |
410
+ | `alipay_return_page_notify` | POST /Alipay/{appKey}/ReturnPageNotify | 支付回调通知 |
411
+
412
+ ### 订单管理 (OrderApi)
413
+ | 方法 | HTTP请求 | 描述 |
414
+ |------|----------|------|
415
+ | `orders` | GET /Order/{appKey} | 获取订单列表 |
416
+ | `order` | GET /Order/{appKey}/{id} | 获取订单详情 |
417
+ | `order_create` | POST /Order/{appKey}/Create | 创建订单 |
418
+
419
+ ### 微信服务 (WechatApi)
420
+ | 方法 | HTTP请求 | 描述 |
421
+ |------|----------|------|
422
+ | `wechat_js_code2_session` | GET /Wechat/{appKey}/JSCode2Session | 小程序登录 |
423
+ | `wechat_decrypt` | GET /Wechat/{appKey}/Decrypt | 解密用户数据 |
424
+ | `wechat_subscribe_send` | POST /Wechat/{appKey}/SubscribeSend | 发送订阅消息 |
425
+ | `wechat_subscribe_msg` | POST /Wechat/{appKey}/SubscribeMSG | 发送一次性订阅消息 |
426
+ | `wechat_user_info` | GET /Wechat/{appKey}/UserInfo | 获取公众号用户信息 |
427
+ | `wechat_js_config` | GET /Wechat/{appKey}/JSConfig | 配置JS SDK |
428
+ | `wechat_wxa_code_get` | POST /Wechat/{appKey}/WXACodeGet | 获取小程序码 |
429
+ | `wechat_wxa_code_get_unlimited` | POST /Wechat/{appKey}/WXACodeGetUnlimited | 获取小程序码(无限制) |
430
+ | `wechat_generate_scheme` | POST /Wechat/{appKey}/GenerateScheme | 生成Scheme码 |
431
+ | `wechat_url_link_generate` | POST /Wechat/{appKey}/UrlLinkGenerate | 生成URL跳转链接 |
432
+ | `wechat_msg_sec_check` | POST /Wechat/{appKey}/MsgSecCheck | 内容安全检测 |
433
+ | `initiate_qr_auth_session` | POST /Wechat/{appKey}/QR-Auth/Initiate | 初始化二维码认证 |
434
+ | `scan_qr_code_for_auth` | POST /Wechat/{appKey}/QR-Auth/Scan | 验证二维码扫描 |
435
+ | `confirm_qr_code_login` | POST /Wechat/{appKey}/QR-Auth/Confirm-Login | 确认二维码登录 |
436
+ | `confirm_qr_code_registration` | POST /Wechat/{appKey}/QR-Auth/Confirm-Register | 确认二维码注册 |
437
+
438
+ ### OAuth授权 (OAuthApi)
439
+ | 方法 | HTTP请求 | 描述 |
440
+ |------|----------|------|
441
+ | `o_auth_grant_code` | POST /OAuth/{appKey}/GrantCode | 获取授权码 |
442
+ | `o_auth_authorize` | POST /OAuth/{appKey}/Authorize | 获取访问令牌 |
443
+ | `o_auth_profile` | GET /OAuth/{appKey}/Profile | 获取用户资料 |
444
+ | `o_auth_consents` | GET /OAuth/{appKey}/Consents | 获取授权记录 |
445
+ | `o_auth_delete_consent` | DELETE /OAuth/{appKey}/Consents/{id} | 删除授权记录 |
446
+
447
+ ### 外部账号 (ExternalAccountApi)
448
+ | 方法 | HTTP请求 | 描述 |
449
+ |------|----------|------|
450
+ | `external_account_sign_in` | POST /ExternalAccount/{appKey}/SignIn | 外部账号登录 |
451
+ | `user_external_account_bind` | POST /ExternalAccount/{appKey} | 绑定外部账号 |
452
+ | `user_o_auth_accounts` | GET /ExternalAccount/{appKey} | 外部账号列表 |
453
+ | `user_o_auth_accounts_put_bind` | PUT /ExternalAccount/{appKey}/{id} | 更新绑定账号 |
454
+ | `user_o_auth_accounts_un_bind` | DELETE /ExternalAccount/{appKey}/{id} | 删除绑定账号 |
455
+
456
+ ### 访问令牌 (AccessTokenApi)
457
+ | 方法 | HTTP请求 | 描述 |
458
+ |------|----------|------|
459
+ | `access_tokens` | GET /AccessToken/{appKey} | 令牌列表 |
460
+ | `access_token_post` | POST /AccessToken/{appKey} | 创建令牌 |
461
+ | `access_token_put` | PUT /AccessToken/{appKey}/{id} | 更新令牌 |
462
+ | `access_token_delete` | DELETE /AccessToken/{appKey}/{id} | 删除令牌 |
463
+
464
+ ### 钉钉集成 (DingTalkApi)
465
+ | 方法 | HTTP请求 | 描述 |
466
+ |------|----------|------|
467
+ | `ding_talk_user_info` | GET /DingTalk/{appKey}/UserInfo | 获取钉钉用户资料 |
468
+
469
+ ## 🛠️ 开发指南
470
+
471
+ ### 最佳实践
472
+
473
+ 1. **令牌管理**: 建议使用动态令牌获取方式,确保令牌安全性
474
+ 2. **错误处理**: 始终包装API调用在异常处理块中
475
+ 3. **分页查询**: 对于列表类接口,合理使用分页参数
476
+ 4. **缓存策略**: 对于不经常变化的数据,考虑实现缓存机制
477
+
478
+ ### 测试环境
479
+
480
+ ```ruby
481
+ # 测试环境配置
482
+ ZSGFClient.configure do |config|
483
+ config.host = 'test-api.zashigaofa.cn' # 测试环境地址
484
+ config.access_token = 'test_token'
485
+ config.debugging = true
486
+ end
487
+ ```
488
+
489
+ ### 常见问题
490
+
491
+ #### Q: 如何处理令牌过期?
492
+
493
+ ```ruby
494
+ ZSGFClient.configure do |config|
495
+ config.access_token_getter = -> {
496
+ # 实现自动刷新令牌的逻辑
497
+ token = get_cached_token()
498
+ if token_expired?(token)
499
+ token = refresh_token()
500
+ cache_token(token)
501
+ end
502
+ token
503
+ }
504
+ end
505
+ ```
506
+
507
+ #### Q: 如何实现请求重试?
508
+
509
+ ```ruby
510
+ def api_call_with_retry(api_method, *args, max_retries: 3)
511
+ retries = 0
512
+ begin
513
+ api_method.call(*args)
514
+ rescue ZSGFClient::ApiError => e
515
+ retries += 1
516
+ if retries <= max_retries && [429, 500, 502, 503].include?(e.code)
517
+ sleep(2 ** retries) # 指数退避
518
+ retry
519
+ else
520
+ raise e
521
+ end
522
+ end
523
+ end
524
+ ```
525
+
526
+ ## 📚 数据模型
527
+
528
+ ### 核心模型
529
+
530
+ - **User**: 用户信息模型
531
+ - **Order**: 订单信息模型
532
+ - **FileItem**: 文件信息模型
533
+ - **UserCurrency**: 用户虚拟货币模型
534
+ - **GeoLocation**: 地理位置模型
535
+
536
+ ### 请求模型
537
+
538
+ - **EmailSignUpRequest**: 邮箱注册请求
539
+ - **CreateOrderRequest**: 创建订单请求
540
+ - **UpdateProfileRequest**: 更新资料请求
541
+
542
+ ### 响应模型
543
+
544
+ - **ApiResponse**: 标准API响应格式
545
+ - **ProfileResult**: 用户资料响应
546
+ - **OrderListResult**: 订单列表响应
547
+
548
+ 详细的模型文档请参考 [docs/](docs/) 目录。
549
+
550
+ ## 📞 技术支持
551
+
552
+ - **官方文档**: [https://doc.zashigaofa.com](https://api.zashigaofa.cn)
553
+
554
+ ## 📄 许可证
555
+
556
+ 请参考相关许可证条款。
557
+
558
+ ---
559
+
560
+ *此文档持续更新中,如有疑问请联系技术支持。*