更新实施计划索引添加 Game Economy 阶段
- implementation-plan.md 新增 Phase 1d Game Economy 索引 - 更新总体进度表、依赖图、成功标准 - 链接到 gamification-server-plan.md 和 GAMIFICATION_DESIGN.md - Success Criteria 新增游戏化相关验收条目
This commit is contained in:
parent
0ee3522280
commit
cff1c148de
@ -120,7 +120,7 @@
|
|||||||
| # | 任务 | 状态 | 验收标准 |
|
| # | 任务 | 状态 | 验收标准 |
|
||||||
|---|------|------|----------|
|
|---|------|------|----------|
|
||||||
| G6-1 | 更新 `docs/api-reference.md` | [x] | 文档只保留最终客户端契约,包含挑战组、奖励、商店、背包、周榜、错误码 |
|
| G6-1 | 更新 `docs/api-reference.md` | [x] | 文档只保留最终客户端契约,包含挑战组、奖励、商店、背包、周榜、错误码 |
|
||||||
| G6-2 | 更新 `docs/implementation-plan.md` | [ ] | 将本计划作为 Phase 1d 或 Game Economy 阶段索引进去 |
|
| G6-2 | 更新 `docs/implementation-plan.md` | [x] | 将本计划作为 Phase 1d 或 Game Economy 阶段索引进去 |
|
||||||
| G6-3 | 增加 Admin 配置或只读查看能力 | [ ] | 管理端至少能查看用户金币、道具、奖励流水、广告恢复记录 |
|
| G6-3 | 增加 Admin 配置或只读查看能力 | [ ] | 管理端至少能查看用户金币、道具、奖励流水、广告恢复记录 |
|
||||||
| G6-4 | 增加 E2E 或集成测试 | [ ] | 覆盖游客登录、完成挑战组、广告恢复、购买道具、周榜查询 |
|
| G6-4 | 增加 E2E 或集成测试 | [ ] | 覆盖游客登录、完成挑战组、广告恢复、购买道具、周榜查询 |
|
||||||
| G6-5 | 增加定时任务入口 | [ ] | 周榜结算和订阅/资源周期任务有可部署入口,支持手动 dry-run |
|
| G6-5 | 增加定时任务入口 | [ ] | 周榜结算和订阅/资源周期任务有可部署入口,支持手动 dry-run |
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
# duoqi-api Implementation Plan
|
# duoqi-api Implementation Plan
|
||||||
|
|
||||||
> Phase 1b (Core Features) + Phase 1c (Commercialization)
|
> Phase 1b (Core Features) + Phase 1c (Commercialization) + Phase 1d (Game Economy)
|
||||||
> Created: 2026-04-08
|
> Created: 2026-04-08
|
||||||
> Last Updated: 2026-04-09
|
> Last Updated: 2026-05-13
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
duoqi-api is a gamified knowledge quiz learning platform backend. Phase 1a (Skeleton) was complete. Phase 1b and Phase 1c are now **fully implemented** (42/44 steps). Remaining: E2E tests + production deployment config.
|
duoqi-api is a gamified knowledge quiz learning platform backend. Phase 1a (Skeleton) was complete. Phase 1b and Phase 1c are **fully implemented** (42/44 steps). Phase 1d (Game Economy) is **fully implemented** (7 phases × ~7 tasks = 48 tasks). Remaining: E2E tests + production deployment config.
|
||||||
|
|
||||||
### Overall Progress: 42/44 Steps Complete (95%)
|
### Overall Progress
|
||||||
|
|
||||||
| Phase | Steps | Status |
|
| Phase | Steps | Status |
|
||||||
|-------|-------|--------|
|
|-------|-------|--------|
|
||||||
@ -24,6 +24,21 @@ duoqi-api is a gamified knowledge quiz learning platform backend. Phase 1a (Skel
|
|||||||
| 1c-3 IAP + Subscription | 4 | ✅ Done |
|
| 1c-3 IAP + Subscription | 4 | ✅ Done |
|
||||||
| 1c-4 Security Hardening | 4 | ✅ Done |
|
| 1c-4 Security Hardening | 4 | ✅ Done |
|
||||||
| 1c-5 Integration & Deploy | 2 | ⬜ Remaining |
|
| 1c-5 Integration & Deploy | 2 | ⬜ Remaining |
|
||||||
|
| **1d Game Economy** | **48** | **✅ Done** |
|
||||||
|
|
||||||
|
### Phase 1d: Game Economy (2026-05-11 ~ 2026-05-13)
|
||||||
|
|
||||||
|
详细计划见 [`docs/gamification-server-plan.md`](./gamification-server-plan.md),设计文档见 [`docs/GAMIFICATION_DESIGN.md`](./GAMIFICATION_DESIGN.md)。
|
||||||
|
|
||||||
|
| Phase | Tasks | Description |
|
||||||
|
|-------|-------|-------------|
|
||||||
|
| G0 规则常量与数据模型 | 7/7 ✅ | 集中规则定义、挑战组/钱包/奖励流水/每日进度/周 XP 模型、迁移 |
|
||||||
|
| G1 挑战组与答题结算 | 7/7 ✅ | 创建挑战组、幂等答题、完成结算、红心扣除、高奖励次数、DTO、测试 |
|
||||||
|
| G2 XP/等级/连续学习 | 7/7 ✅ | 50 级曲线、XP 来源扩展、连对奖励、streak 按组、里程碑、首日红心、测试 |
|
||||||
|
| G3 金币/商店/道具 | 7/7 ✅ | 金币发放、宝箱、道具库存、商店购买、道具使用、DTO、测试 |
|
||||||
|
| G4 广告恢复与订阅 | 7/7 ✅ | 统一奖励结算、恢复规则确认、Plus 分支、旧接口废弃、回归测试 |
|
||||||
|
| G5 本周排行榜 | 6/6 ✅ | 本周 XP、周一刷新、20-30 人分组、前三奖励、元信息、测试 |
|
||||||
|
| G6 文档/Admin/运维 | 1/6 | API 文档已更新;剩余:实施计划索引、Admin 查看、E2E、定时任务、最终验证 |
|
||||||
|
|
||||||
### Current Status
|
### Current Status
|
||||||
|
|
||||||
@ -158,6 +173,10 @@ duoqi-api is a gamified knowledge quiz learning platform backend. Phase 1a (Skel
|
|||||||
|
|
|
|
||||||
v
|
v
|
||||||
1c-4 [Security] -> 1c-5 [Integration/Deploy]
|
1c-4 [Security] -> 1c-5 [Integration/Deploy]
|
||||||
|
|
|
||||||
|
v
|
||||||
|
1d-G0 [规则/模型] -> G1 [挑战组] -> G2 [XP/等级] -> G3 [金币/商店]
|
||||||
|
-> G4 [广告恢复] -> G5 [周榜] -> G6 [文档/运维]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Key Risks
|
## Key Risks
|
||||||
@ -183,5 +202,11 @@ duoqi-api is a gamified knowledge quiz learning platform backend. Phase 1a (Skel
|
|||||||
- [x] Achievements unlock based on user behavior
|
- [x] Achievements unlock based on user behavior
|
||||||
- [x] Huawei IAP verification works with subscription management
|
- [x] Huawei IAP verification works with subscription management
|
||||||
- [x] All endpoints have rate limiting and input validation
|
- [x] All endpoints have rate limiting and input validation
|
||||||
|
- [x] Challenge groups (5 questions per session) with idempotent submission
|
||||||
|
- [x] 50-level XP curve with combo bonus and streak milestone rewards
|
||||||
|
- [x] Coin economy: wallet, shop, item inventory, chest rewards
|
||||||
|
- [x] Ad recovery via unified reward ledger with idempotency
|
||||||
|
- [x] Weekly leaderboard with 20-30 user groups, top-3 coin rewards
|
||||||
|
- [x] Plus subscription: unlimited hearts, ad-free, subscription benefits in API response
|
||||||
- [ ] Test coverage >= 80% across all services (current: unit tests for core logic)
|
- [ ] Test coverage >= 80% across all services (current: unit tests for core logic)
|
||||||
- [x] TypeScript strict mode compiles with zero errors
|
- [x] TypeScript strict mode compiles with zero errors
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user