@freelog/tools-lib 0.1.197 → 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.197",
3
+ "version": "0.1.199",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -175,17 +175,40 @@ export function queryWithdrawCashList(params: QueryWithdrawCashListParamsType, c
175
175
  }
176
176
 
177
177
  // 交易记录分页列表查询
178
- // interface QueryTransactionListParamsType {
179
- // skip?: number;
180
- // limit?: number;
181
- // accountId: string;
182
- // }
183
-
184
- // export function queryTransactionList(params: QueryTransactionListParamsType, config?: AxiosRequestConfig) {
185
- // return FUtil.Request({
186
- // method: 'GET',
187
- // url: `/v3/transactions/transaction/list`,
188
- // params: params,
189
- // ...config,
190
- // });
191
- // }
178
+ interface QueryTransactionListParamsType {
179
+ skip?: number;
180
+ limit?: number;
181
+ ownerId: number; // 交易记录所属者ID; 根据所属者类型动态赋值userId或nodeId
182
+ ownerType: 1 | 2 | 3; // 交易记录所属者类型; 1:资源创作者用户id 2:节点 3:用户id
183
+ transactionStatus?: 1 | 2; // 1:交易成功 2:交易成功但是存在退款
184
+ businessType?: 'ContractRoutinePayment';
185
+ minTransactionAmount?: number;
186
+ maxTransactionAmount?: number;
187
+ startTransactionDate?: string;
188
+ endTransactionDate?: string;
189
+ keywords?: string;
190
+ }
191
+
192
+ export function queryTransactionList(params: QueryTransactionListParamsType, config?: AxiosRequestConfig) {
193
+ return FUtil.Request({
194
+ method: 'GET',
195
+ url: `/v3/transactions/records`,
196
+ params: params,
197
+ ...config,
198
+ });
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
+ }