feat(ops): ECR-007 行为分析与 ECR-008 内容运营后台
落地埋点 ingest/数据看板、首页宫格 CMS 与测评上下架;含账号引导、问答流式与免责声明去重,以及 review P1 审计同事务修复。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# ENGINEERING_SPEC — ECR-008 运营内容 Ops-C
|
||||
|
||||
权威设计:`docs/BACKEND_DESIGN/ECR-008-ops-content.md`
|
||||
产品:`.ai/product/feature-spec/ops-content.md`
|
||||
|
||||
## Implement order
|
||||
|
||||
1. Migration `000014_ops_content`(`home_tools` + seed 12 格)+ ERD
|
||||
2. `repository/home_tools_repo.go` · 扩展 `ScaleRepo` admin list/update status
|
||||
3. `service/home`(或 `service/content`)+ admin 扩展:校验白名单、整表替换、审计
|
||||
4. Handler:`GET /home/tools` 挂 DeviceAuth;admin home/scales 挂 AdminAuth
|
||||
5. OpenAPI
|
||||
6. SDK:`getHomeTools`
|
||||
7. `user-h5`:`useHomePage` 拉 API + 静态回退
|
||||
8. `admin-h5`:「内容」页两 Tab
|
||||
9. Integration + 单测
|
||||
10. TRACEABILITY · STATE · CHANGELOG · feature-map
|
||||
|
||||
## Constraints
|
||||
|
||||
- 函数 ≤50 · 文件 ≤400
|
||||
- UI → sdk/thin client → Handler → Service → Repository
|
||||
- PUT home_tools:整批事务替换;失败整批回滚
|
||||
- 不提交密钥
|
||||
|
||||
## Done when
|
||||
|
||||
ECR Acceptance + DoD Review + ess-validate review
|
||||
Reference in New Issue
Block a user