50 lines
971 B
Markdown
50 lines
971 B
Markdown
|
|
# T332 — asset-learning-persona-brand-fields
|
|||
|
|
|
|||
|
|
> Status: `done`
|
|||
|
|
> Milestone: `M2`
|
|||
|
|
> Kind: `feat`
|
|||
|
|
> Est. change: `~140 lines`
|
|||
|
|
|
|||
|
|
## Goal
|
|||
|
|
|
|||
|
|
完成後系統應:Persona/Brand get/list 含 learning_summary、learning_version、learned_from_posts_count、last_learned_at;空態明確;分析或健檢成功可更新。
|
|||
|
|
|
|||
|
|
## Depends on
|
|||
|
|
|
|||
|
|
- T330(健檢可觸發刷新)
|
|||
|
|
|
|||
|
|
## Inputs
|
|||
|
|
|
|||
|
|
- Spec:`../spec.md` §4.3、AL-01~02
|
|||
|
|
- 既有 persona/brand module
|
|||
|
|
|
|||
|
|
## Outputs
|
|||
|
|
|
|||
|
|
| 路徑 | 動作 | 說明 |
|
|||
|
|
|------|------|------|
|
|||
|
|
| `apps/backend/internal/**/persona/**` | edit | learning 欄位 |
|
|||
|
|
| `apps/backend/internal/**/brand/**` | edit | learning 欄位 |
|
|||
|
|
| `.api` types | edit | 回應擴充 |
|
|||
|
|
|
|||
|
|
### 行為變更
|
|||
|
|
|
|||
|
|
- 無學習時不回假數字
|
|||
|
|
- 實質變更才 version+1
|
|||
|
|
|
|||
|
|
## Out of scope
|
|||
|
|
|
|||
|
|
- 完整 Insights 管線
|
|||
|
|
|
|||
|
|
## Acceptance
|
|||
|
|
|
|||
|
|
- [ ] Spec:AL-01、AL-02
|
|||
|
|
- [ ] 指令:
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
cd apps/backend && go test ./internal/... -run AL_|Learning -count=1
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
## Notes
|
|||
|
|
|
|||
|
|
—
|