rwadurian/backend/services/identity-service/prisma/migrations
hailin cad7ebe832 feat(payment-password): 添加支付密码功能(全栈)
后端(identity-service):
- Prisma schema 新增 paymentPasswordHash 字段及手动迁移脚本
- user-application.service 添加 4 个方法:isPaymentPasswordSet / setPaymentPassword /
  changePaymentPassword / verifyPaymentPassword(纯新增,不修改已有逻辑)
- user-account.controller 新增 4 个端点:
  GET /user/payment-password-status
  POST /user/set-payment-password
  POST /user/change-payment-password
  POST /user/verify-payment-password → { valid: bool }

前端(mobile-app):
- account_service 新增 4 个方法对应后端 4 个接口
- 新建 change_payment_password_page.dart:6 位数字支付密码设置/修改页面
- 路由:RoutePaths / RouteNames / AppRouter 注册 /security/payment-password
- profile_page:'修改登录密码' 改为 '修改密码',下方新增 '支付密码' 入口
- PasswordVerifyDialog:新增 title / subtitle / hint 可选参数,支持登录/支付双模式
- planting_location_page:认种确认改为验证支付密码(verifyPaymentPassword)
- pre_planting_purchase_page:预种确认后追加支付密码验证步骤

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 06:18:40 -08:00
..
20241204000000_init refactor: 清理 migration 和 seed 数据重复定义 2025-12-21 00:43:28 -08:00
20241224000000_add_email_field chore(identity): add migration for email field and email_codes table 2025-12-23 21:23:36 -08:00
20241224000001_add_kyc_fields feat(kyc): 实现实名认证和更换手机号功能 2025-12-24 06:38:39 -08:00
20241224000002_add_email_verified feat(kyc): 实现实名认证和更换手机号功能 2025-12-24 06:38:39 -08:00
20241224100000_add_kyc_levels feat(kyc): 实现完整三层KYC认证功能 2025-12-24 07:14:11 -08:00
20260102000000_add_user_pending_actions feat(pending-actions): add user pending actions system 2026-01-02 18:22:51 -08:00
20260305000000_add_payment_password_hash feat(payment-password): 添加支付密码功能(全栈) 2026-03-05 06:18:40 -08:00