Skip to content

Let's use AI to Earn!

feat: 提现接口

牛文政2deb5beb8cc8
diff --git a/src/api/finance.ts b/src/api/finance.ts
index 7f00bed5..70707820 100644
--- a/src/api/finance.ts
+++ b/src/api/finance.ts
@@ -7,7 +7,7 @@
*/
import http from './request';
import { Pagination } from './types';
-import { UserWalletRecord } from './types/finance';
+import { UserWalletRecord, UserWalletRecordStatus } from './types/finance';
import {
CreateUserWalletAccountParams,
UserWalletAccount,
@@ -56,6 +56,20 @@ export const financeApi = {
},
// --------- userWalletAccount END ---------
+ // 创建用户提现记录-提交提现
+ addUserWalletRecord(data: {
+ walletAccountId: string; // 钱包账户
+ balance: number;
+ }) {
+ return http.post<Pagination<UserWalletRecord>>(
+ `/finance/userWalletRecord`,
+ data,
+ {
+ isToken: true,
+ },
+ );
+ },
+
// 提现记录
getWithdrawList(params: { page: number; pageSize: number }) {
return http.get<Pagination<UserWalletRecord>>(