@freelog/tools-lib 0.1.198 → 0.1.199

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.198",
3
+ "version": "0.1.199",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -179,8 +179,8 @@ interface QueryTransactionListParamsType {
179
179
  skip?: number;
180
180
  limit?: number;
181
181
  ownerId: number; // 交易记录所属者ID; 根据所属者类型动态赋值userId或nodeId
182
- ownerType: 1 | 2; // 交易记录所属者类型; 1:用户 2:节点
183
- transactionStatus?: 1 | 2 | 3; // 1:交易成功 2:交易成功但是存在退款 3:交易失败
182
+ ownerType: 1 | 2 | 3; // 交易记录所属者类型; 1:资源创作者用户id 2:节点 3:用户id
183
+ transactionStatus?: 1 | 2; // 1:交易成功 2:交易成功但是存在退款
184
184
  businessType?: 'ContractRoutinePayment';
185
185
  minTransactionAmount?: number;
186
186
  maxTransactionAmount?: number;
@@ -197,3 +197,18 @@ export function queryTransactionList(params: QueryTransactionListParamsType, con
197
197
  ...config,
198
198
  });
199
199
  }
200
+
201
+ // 查询统计信息
202
+ interface QueryStatisticsParamsType {
203
+ ownerId: number; // 交易记录所属者ID; 根据所属者类型动态赋值userId或nodeId
204
+ ownerType: 1 | 2; // 交易记录所属者类型; 1:资源创作者用户id 2:节点
205
+ }
206
+
207
+ export function queryStatistics(params: QueryStatisticsParamsType, config?: AxiosRequestConfig) {
208
+ return FUtil.Request({
209
+ method: 'GET',
210
+ url: `/v3/transactions/statistics`,
211
+ params: params,
212
+ ...config,
213
+ });
214
+ }