gcx/backend/services
hailin 9473512530 feat(auth): 邮箱注册完整实现 — Gmail SMTP + 邮件验证码全链路
后端 (auth-service):
- 新增 EmailVerification / EmailLog 实体 + TypeORM 映射
- Email 值对象:格式校验、小写归一化、脱敏展示
- Gmail SMTP Provider (nodemailer) + ConsoleEmailProvider (dev)
- EmailCodeService:Redis 缓存快速路径,与 SmsCodeService 对称
- EmailService:sendCode/verifyCode + 日限额 + 业务规则校验
- 新增端点:POST /auth/email/send / register-email / login-email / reset-password-email
- EMAIL_ENABLED 环境变量切换真实/控制台发送
- 数据库迁移:048_create_email_verifications.sql

前端 (genex-mobile):
- AuthService 新增 sendEmailCode / registerByEmail / loginByEmail / resetPasswordByEmail
- RegisterPage 根据 isEmail 参数自动切换 SMS/Email API 调用
- WelcomePage 邮箱注册按钮传递 isEmail:true 参数
- i18n 新增 register.errorEmailRequired(4语种)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 02:27:43 -08:00
..
admin-service fix(admin-service+mobile): 修复 OTA 下载三处 Bug 2026-03-03 22:19:10 -08:00
ai-service fix(health): 修正NestJS服务健康检查URL路径 /health → /api/v1/health 2026-02-20 05:50:26 -08:00
auth-service feat(auth): 邮箱注册完整实现 — Gmail SMTP + 邮件验证码全链路 2026-03-04 02:27:43 -08:00
chain-indexer feat(health): 为全部12个微服务添加Docker健康检查 2026-02-20 05:39:25 -08:00
clearing-service fix(health): 修正NestJS服务健康检查URL路径 /health → /api/v1/health 2026-02-20 05:50:26 -08:00
compliance-service fix(schema): 统一 disputes + audit_logs 迁移与实体定义 2026-02-23 22:01:20 -08:00
issuer-service feat: 全平台API对齐 — 4个前端应用55+页面接入真实后端API 2026-02-22 22:53:07 -08:00
notification-service fix(health): 修正NestJS服务健康检查URL路径 /health → /api/v1/health 2026-02-20 05:50:26 -08:00
referral-service feat(referral): 推荐服务全链路实现 2026-03-04 00:58:28 -08:00
telemetry-service fix(health): 修正NestJS服务健康检查URL路径 /health → /api/v1/health 2026-02-20 05:50:26 -08:00
trading-service feat: 全平台API对齐 — 4个前端应用55+页面接入真实后端API 2026-02-22 22:53:07 -08:00
translate-service feat(health): 为全部12个微服务添加Docker健康检查 2026-02-20 05:39:25 -08:00
user-service fix(ui): 修复登录页中英混用 + 搜索栏溢出,更新品牌口号并支持后台配置 2026-03-03 20:41:37 -08:00