返回 AiToEarn
userWalletAccount.ts
根目录 / project / aitoearn-electron / src / api / types / userWalletAccount.ts
1 /*
2 * @Author: nevin
3 * @Date: 2025-03-01 19:27:35
4 * @LastEditTime: 2025-03-01 19:39:02
5 * @LastEditors: nevin
6 * @Description: 用户钱包账户
7 */
8 export enum WalletAccountType {
9 ZFB = 'ZFB',
10 WX_PAY = 'WX_PAY',
11 }
12
13 export interface UserWallet {
14 userId: string;
15 balance: number;
16 income: number;
17 }
18
19 export interface UserWalletAccount {
20 id: string;
21 account: string; // 账户号
22 userId: string;
23 userName: string; // 真实姓名
24 cardNum: string; // 身份证号
25 phone: string; // 绑定的手机号
26 type: WalletAccountType;
27 }
28
29 export interface CreateUserWalletAccountParams {
30 account: string; // 账户号
31 userName: string; // 真实姓名
32 cardNum: string; // 身份证号
33 phone: string; // 绑定的手机号
34 type: WalletAccountType;
35 }
36
36 lines TYPESCRIPT