feat(ops): ECR-007 行为分析与 ECR-008 内容运营后台
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s

落地埋点 ingest/数据看板、首页宫格 CMS 与测评上下架;含账号引导、问答流式与免责声明去重,以及 review P1 审计同事务修复。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-07 02:26:16 +08:00
co-authored by Cursor
parent 7e9023f0a8
commit 7ab9add5dd
132 changed files with 8276 additions and 491 deletions
@@ -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` 挂 DeviceAuthadmin 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