thread-master/docs/product/growth-loop/tasks/T310-outcome-domain-model-r...

48 lines
909 B
Markdown
Raw Permalink Normal View History

2026-07-23 05:56:42 +00:00
# T310 — outcome-domain-model-and-repository
> Status: `done`
> Milestone: `M1`
> Kind: `feat`
> Est. change: `~180 lines`
## Goal
完成後系統應OutcomeEvent domain + repositorymongomemory可 CRUD含 source、confidence、window、conversion 欄位。
## Depends on
- T301
## Inputs
- Spec`../spec.md` §2、§3.1、§8
- 既有 module 模式:`apps/backend/internal/module/**`
## Outputs
| 路徑 | 動作 | 說明 |
|------|------|------|
| `apps/backend/internal/module/**/outcome/**` | add | domain + repo + usecase 殼 |
### 行為變更
- 可建立 observing 事件list by owneramend conversion
## Out of scope
- HTTP handler 完整T313
- observe JobT312
## Acceptance
- [ ] unit test create/list/amend
- [ ] 指令:
```bash
cd apps/backend && go test ./internal/.../outcome/... -count=1
```
## Notes
confidence: confirmed | possible