| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2025-03-02 21:06:59 |
| 4 | * @LastEditTime: 2025-03-02 22:12:36 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: 财务相关 |
| 7 | */ |
| 8 | import { UserWalletAccount } from './userWalletAccount'; |
| 9 | |
| 10 | export enum UserWalletRecordType { |
| 11 | TASK_COMMISSION = 'TASK_COMMISSION', // 任务佣金 |
| 12 | WITHDRAW = 'WITHDRAW', // 提现 |
| 13 | } |
| 14 | |
| 15 | export enum UserWalletRecordStatus { |
| 16 | FAIL = -1, |
| 17 | WAIT = 0, |
| 18 | SUCCESS = 1, |
| 19 | } |
| 20 | |
| 21 | export interface UserWalletRecord { |
| 22 | id: string; |
| 23 | userId: string; |
| 24 | account: UserWalletAccount; |
| 25 | dataId: string; // 关联数据的ID |
| 26 | type: UserWalletRecordType; |
| 27 | balance: number; |
| 28 | status: UserWalletRecordStatus; |
| 29 | payTime?: string; |
| 30 | des?: string; |
| 31 | imgUrl?: string; // 反馈截图 |
| 32 | createdAt: string; |
| 33 | updatedAt: string; |
| 34 | } |
| 35 |