rwadurian/frontend/mobile-app/lib/features
hailin 288d894746 feat(withdrawal): implement fiat withdrawal with bank/alipay/wechat
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>
2026-01-03 05:28:05 -08:00
..
account/presentation/pages feat(mobile-app,admin): 添加系统维护功能和通知徽章功能 2025-12-27 23:26:01 -08:00
auth/presentation feat(pending-actions): add user pending actions system 2026-01-02 18:22:51 -08:00
authorization/presentation feat(mobile-app): 流水明细支持显示权益类型和详情 2025-12-26 03:57:35 -08:00
contract_signing/presentation feat(contract-signing): 增强签名功能 2025-12-26 06:42:15 -08:00
deposit/presentation/pages fix(mobile-app): 优化数字显示组件防止自动换行 2025-12-23 18:33:51 -08:00
home/presentation chore(mobile-app): 减少频繁轮询产生的调试日志 2025-12-28 06:54:16 -08:00
kyc feat(mobile-app): KYC成功后自动跳转合同签署页面 2025-12-25 07:07:43 -08:00
mining/presentation/pages fix(mobile-app): 优化数字显示组件防止自动换行 2025-12-23 18:33:51 -08:00
notification/presentation/pages feat(mobile-app,admin): 添加系统维护功能和通知徽章功能 2025-12-27 23:26:01 -08:00
pending_actions/presentation/pages feat(settlement): implement settle-to-balance with detailed source tracking 2026-01-03 04:29:38 -08:00
planting/presentation feat(mobile-app): KYC成功后自动跳转合同签署页面 2025-12-25 07:07:43 -08:00
profile/presentation feat: "同僚"改为"同伴" + KYC从三要素改为二要素 2026-01-02 04:20:42 -08:00
ranking/presentation/pages fix(mobile-app): 优化数字显示组件防止自动换行 2025-12-23 18:33:51 -08:00
security/presentation/pages feat(email): 实现邮箱绑定/解绑功能 2025-12-23 20:53:20 -08:00
share/presentation/pages feat(frontend): 多项功能改进 2025-12-15 04:04:21 -08:00
trading/presentation/pages feat(mobile-app): 优化流水明细筛选选项 2025-12-26 08:17:15 -08:00
withdraw/presentation/pages feat(withdrawal): implement fiat withdrawal with bank/alipay/wechat 2026-01-03 05:28:05 -08:00