@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/dist/service-API/payment.d.ts +7 -2
- package/dist/tools-lib.cjs.development.js +9 -1
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +9 -1
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/payment.ts +17 -2
package/package.json
CHANGED
|
@@ -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
|
|
183
|
-
transactionStatus?: 1 | 2
|
|
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
|
+
}
|