@freelog/tools-lib 0.1.187 → 0.1.190

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.
@@ -209,6 +209,14 @@ interface GlobalSearchParamsType {
209
209
  search: string;
210
210
  }
211
211
  export declare function globalSearch({ search }: GlobalSearchParamsType): string;
212
+ interface SettlementInfoParamsType {
213
+ nodeID?: number;
214
+ }
215
+ export declare function settlementInfo({ nodeID }: SettlementInfoParamsType): string;
216
+ interface SettlementInfoEditorParamsType {
217
+ nodeID?: number;
218
+ }
219
+ export declare function settlementInfoEditor({ nodeID }: SettlementInfoEditorParamsType): string;
212
220
  /************** console End ******************************************************/
213
221
  /************** user Start ******************************************************/
214
222
  interface LoginParamsType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.187",
3
+ "version": "0.1.190",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -80,3 +80,63 @@ export function queryFinancialAccountInfo(params: QueryFinancialAccountInfoParam
80
80
  ...config,
81
81
  });
82
82
  }
83
+
84
+ // 查询绑定提现卡
85
+ interface QueryBindWithdrawCardParamsType {
86
+ accountId: string; // 金融账户ID
87
+ }
88
+
89
+ export function queryBindWithdrawCard({accountId}: QueryBindWithdrawCardParamsType, config?: AxiosRequestConfig) {
90
+ return FUtil.Request({
91
+ method: 'GET',
92
+ url: `/v3/transactions/accounts/${accountId}/cashCard`,
93
+ ...config,
94
+ });
95
+ }
96
+
97
+ // 用户主动提现
98
+ interface WithdrawCashParamsType {
99
+ accountId: string; // 金融账户ID
100
+ transactionAmount: number; // 提现金额; 最多保留两位小数
101
+ }
102
+
103
+ export function withdrawCash(params: WithdrawCashParamsType, config?: AxiosRequestConfig) {
104
+ return FUtil.Request({
105
+ method: 'POST',
106
+ url: `/v3/transactions/withdrawCash`,
107
+ data: params,
108
+ ...config,
109
+ });
110
+ }
111
+
112
+ // 提现记录分页列表查询
113
+ interface QueryWithdrawCashListParamsType {
114
+ accountId: string; // 金融账户ID
115
+ skip?: number;
116
+ limit?: number;
117
+ }
118
+
119
+ export function queryWithdrawCashList(params: QueryWithdrawCashListParamsType, config?: AxiosRequestConfig) {
120
+ return FUtil.Request({
121
+ method: 'GET',
122
+ url: `/v3/transactions/withdrawCash/records`,
123
+ params: params,
124
+ ...config,
125
+ });
126
+ }
127
+
128
+ // 交易记录分页列表查询
129
+ // interface QueryTransactionListParamsType {
130
+ // skip?: number;
131
+ // limit?: number;
132
+ // accountId: string;
133
+ // }
134
+
135
+ // export function queryTransactionList(params: QueryTransactionListParamsType, config?: AxiosRequestConfig) {
136
+ // return FUtil.Request({
137
+ // method: 'GET',
138
+ // url: `/v3/transactions/transaction/list`,
139
+ // params: params,
140
+ // ...config,
141
+ // });
142
+ // }
@@ -562,6 +562,24 @@ export function globalSearch({ search }: GlobalSearchParamsType) {
562
562
  })}`;
563
563
  }
564
564
 
565
+ // 结算信息
566
+ interface SettlementInfoParamsType {
567
+ nodeID?: number;
568
+ }
569
+
570
+ export function settlementInfo({ nodeID }: SettlementInfoParamsType) {
571
+ return `/settlementInfo${handleQuery({ nodeID })}`;
572
+ }
573
+
574
+ // 结算信息编辑
575
+ interface SettlementInfoEditorParamsType {
576
+ nodeID?: number;
577
+ }
578
+
579
+ export function settlementInfoEditor({ nodeID }: SettlementInfoEditorParamsType) {
580
+ return `/settlementEditor${handleQuery({ nodeID })}`;
581
+ }
582
+
565
583
  /************** console End ******************************************************/
566
584
 
567
585
  /************** user Start ******************************************************/