Add complete fiat withdrawal feature that allows users to withdraw green credits (绿积分) to their bank card, Alipay, or WeChat account with 1:1 CNY conversion. Key changes: Backend (wallet-service): - Update Prisma schema with fiat withdrawal fields (paymentMethod, bankName, bankCardNo, cardHolderName, alipay*, wechat*, review fields) - Rewrite withdrawal status enum for fiat flow: PENDING → FROZEN → REVIEWING → APPROVED → PAYING → COMPLETED (or REJECTED/FAILED) - Add PaymentMethod enum: BANK_CARD, ALIPAY, WECHAT - Update WithdrawalOrderAggregate with new fiat withdrawal methods - Add review/payment workflow methods in WalletApplicationService - Add internal API endpoints for admin withdrawal management - Remove blockchain withdrawal event handler (no longer needed) Frontend (admin-web): - Add withdrawal review management page at /withdrawals - Add tabs for reviewing/approved/paying order states - Add withdrawal service and React Query hooks - Add types for withdrawal orders and payment methods - Add sidebar menu item for withdrawal review Frontend (mobile-app): - Add withdrawFiat() method to WalletService - Add PaymentMethod enum with BANK_CARD/ALIPAY/WECHAT - Create new WithdrawFiatPage for fiat withdrawal input - Create WithdrawFiatConfirmPage with SMS + password verification - Add routes for /withdraw/fiat and /withdraw/fiat/confirm - Keep existing withdraw/usdt (划转) pages unchanged Note: The existing withdraw_usdt_page.dart is for point-to-point transfer (划转), which is a different feature from fiat withdrawal. 🤖 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.