thread-master/docs/product/growth-loop/tasks/T365-invite-reward-on-first...

52 lines
999 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# T365 — invite-reward-on-first-paid-plan
> Status: `done`
> Milestone: `M4`
> Kind: `feat`
> Est. change: `~180 lines`
## Goal
完成後系統應:直邀會員首次 free→starter|pro 成功時邀請人得點100/300月上限 50% 方案額度;狀態 credited|capped|skipped僅單層、僅首次。
## Depends on
- T301
- 既有 plan purchase 成功路徑haixun-backend
## Inputs
- Spec`../spec.md` §3.4、§4.5、IR-0105
- 既有 invite parent_uid、usage plan
## Outputs
| 路徑 | 動作 | 說明 |
|------|------|------|
| `apps/backend/internal/module/**/invite*/**` 或 reward | add/edit | InviteReward |
| plan purchase logic | edit | hook |
### 行為變更
- 續訂/再升級不發
- 延伸不發
- 調 parent 不回溯已發
## Out of scope
- 現金/多層
- FET366
## Acceptance
- [ ] SpecIR-01IR-05
- [ ] 指令:
```bash
cd apps/backend && go test ./internal/... -run IR_0|InviteReward -count=1
```
## Notes