refactor(ECR-001): 接入 ESS 并完成结构对齐 Phase A–E

绑定 ESS 双轨治理,拆分超大 H5 页与 Go 引擎,抽出 membership 服务,
并将 star/fortune 重命名为 outlook(JSON 双写兼容);同时修复 /psy API 代理与首页 + 菜单层级。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-05 17:51:40 +08:00
co-authored by Cursor
parent 583133dd09
commit 19d3cd5945
75 changed files with 4199 additions and 2505 deletions
+31
View File
@@ -0,0 +1,31 @@
# Test Report — ECR-001 Phase AE (+ ECR-002)
## ECR
ECR-001 Phase A/C/D/E · ECR-002
## Change Level
L2 / L3(结构 · 无行为变更意图)
## Cases
- [x] Phase ALEGACY / ADR-0007 / go-services 对齐
- [x] Phase B:已完成(先前)
- [x] Phase C`service/membership` 抽出;路由不变;handler 接线
- [x] Phase Drelation/star engine 同包拆分
- [x] Phase E / ECR-002`star/fortune``star/outlook`JSON 双写
- [x] `go test` relation/star/outlook + build server
- [x] integration`go test ./internal/integration/` PASS
## Command
```bash
cd apps/api && go test ./internal/relation/... ./internal/star/... ./internal/service/... -count=1
go build ./cmd/server
go test ./internal/integration/ -count=1
```
## Residual Risk
- JSON 旧键 `fortune` 仍在;彻底删除需客户端迁移 ECR
- Period 结构体字段 `Lucky` json:`lucky` 仍保留兼容
## Gate
- [x] Phase AE 代码落地
- [ ] Reviewer 签核
+32
View File
@@ -0,0 +1,32 @@
# Test Report — ECR-001 Phase B
## ECR
ECR-001 (Phase B — H5 page decomposition)
## Change Level
L2(结构重构 · 无行为变更)
## Cases
- [x] `HomePage.vue` ≤400 行(实测 133
- [x] `SynastryPage.vue` ≤400 行(实测 187
- [x] 子组件/composable 拆分后 `npm run build:h5` 通过
- [x] `homeCatalog.spec.ts` 宫格/推荐数据不变
- [ ] 手工冒烟:首页入口点击 / 合盘生成(待 Reviewer 或本地人工)
## Result
自动化:build PASS · vitest 2/2 PASS
行为回归:依赖人工冒烟(无 e2e 专测本 Phase)
## Command
```bash
npm run build:h5
npm run test -w @yuxingu/user-h5 -- src/lib/homeCatalog.spec.ts
```
## Residual Risk
- Synastry 交互面大,拆分后 props/emits 面宽,建议人工点一遍落地→合盘→结果 tabs
- 其他超标页(StarProfile/Report/Profile/Ask)未纳入本 Phase
## Gate
- [x] Phase B Acceptance(两页 ≤400 + build 绿)mapped and green
- [ ] Ready for Reviewer sign-off