|
|
58db7d6063
|
feat: 实现阿里云短信验证码登录
CI/CD Pipeline / Code Quality (push) Successful in 19s
CI/CD Pipeline / Unit Tests (push) Successful in 17s
CI/CD Pipeline / Build & Deploy Test (push) Has been skipped
CI/CD Pipeline / Build & Deploy Production (push) Successful in 1m35s
通过阿里云号码认证服务 (DYPNS) 的 SendSmsVerifyCode / CheckSmsVerifyCode
实现手机号验证码两步登录流程,验证码由阿里云生成和管理,无需服务端存储。
新增端点:
- POST /v1/auth/phone/send-code (5次/分钟)
- POST /v1/auth/phone 核验+登录 (10次/分钟)
新增环境变量:ALIYUN_SMS_SIGN_NAME, ALIYUN_SMS_TEMPLATE_CODE,
ALIYUN_SMS_TEMPLATE_PARAM
|
2026-06-01 23:53:49 +08:00 |
|
|
|
f6e7be324e
|
feat: initialize duoqi-api project skeleton
Set up Fastify + TypeScript + Drizzle ORM backend with:
- Database schema (7 tables: users, categories, questions, knowledge_cards, user_progress, skill_tree, user_chapter_progress)
- JWT auth middleware + admin token auth
- Route structure for auth, quiz, progress, gamification, payment, and admin
- Service stubs for Phase 1b implementation
- Zod-validated env config, custom error classes
|
2026-04-08 21:24:15 +08:00 |
|