实现完整的法币提现功能,支持银行卡、支付宝、微信三种收款方式。 此功能与现有的区块链划转功能完全独立,互不影响。 ## 后端 (wallet-service) ### 数据库 - 新增 `fiat_withdrawal_orders` 表存储法币提现订单 - 与现有 `withdrawal_orders` 表(区块链划转)完全分离 - 添加完整索引支持高效查询 ### 领域层 - 新增 `FiatWithdrawalStatus` 枚举(与 WithdrawalStatus 独立) - 流程: PENDING -> FROZEN -> REVIEWING -> APPROVED -> PAYING -> COMPLETED - 或 REJECTED / FAILED / CANCELLED - 新增 `PaymentMethod` 枚举: BANK_CARD / ALIPAY / WECHAT - 新增 `FiatWithdrawalOrder` 聚合根 - 新增 `IFiatWithdrawalOrderRepository` 仓储接口 - 新增 `FIAT_WITHDRAWAL` 账本流水类型 ### 应用层 - 新增 `FiatWithdrawalApplicationService` 处理业务逻辑 - 发送短信验证码 - 申请法币提现(冻结余额) - 提交审核 - 审核通过/驳回 - 开始打款 - 完成打款 ### API层 - 新增 `FiatWithdrawalController` 提供用户端API - POST /wallet/fiat-withdrawal/send-sms - 发送验证码 - POST /wallet/fiat-withdrawal - 申请提现 - GET /wallet/fiat-withdrawal - 获取提现记录 - 新增内部API供管理端调用 - GET /api/v1/wallets/fiat-withdrawals - 查询订单 - POST /api/v1/wallets/fiat-withdrawals/:orderNo/review - 审核 - POST /api/v1/wallets/fiat-withdrawals/:orderNo/start-payment - 开始打款 - POST /api/v1/wallets/fiat-withdrawals/:orderNo/complete-payment - 完成打款 ## 前端 (admin-web) - 新增法币提现审核管理页面 `/withdrawals` - 支持按状态分 Tab 查看订单 - 支持审核通过/驳回 - 支持打款操作 - 支持查看订单详情 ## 前端 (mobile-app) - 新增 `WithdrawFiatPage` 法币提现页面 - 支持选择银行卡/支付宝/微信 - 输入收款账户信息 - 新增 `WithdrawFiatConfirmPage` 确认页面 - 短信验证码验证 - 密码验证 - 在 `WalletService` 中添加法币提现相关方法和模型 ## 重要说明 此功能与现有的区块链划转功能 (withdraw_usdt_page.dart) 完全独立: - 独立的数据库表 - 独立的聚合根 - 独立的状态枚举 - 独立的API端点 - 独立的前端页面 原有的区块链划转功能保持不变,不受任何影响。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| android | ||
| assets | ||
| docs | ||
| ios | ||
| lib | ||
| linux | ||
| macos | ||
| scripts | ||
| test | ||
| web | ||
| windows | ||
| .gitignore | ||
| .metadata | ||
| CLAUDE.md | ||
| README.MD | ||
| analysis_options.yaml | ||
| flutter_android_update_guide.md | ||
| flutter_telemetry_solution.md | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| quickly.lottie | ||
| stickman.lottie | ||
README.MD
Create Flutter Framework
C:\Users\ph\Desktop\app>flutter create --org com.rwadurian rwa_android_app
Creating project rwa_android_app...
Resolving dependencies in `rwa_android_app`... (3.7s)
Downloading packages...
Got dependencies in `rwa_android_app`.
Wrote 130 files.
All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev
In order to run your application, type:
$ cd rwa_android_app
$ flutter run
Your application code is in rwa_android_app\lib\main.dart.
rwa_android_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.