refactor(b1b-c3): 聚合体路由由 spec 声明 —— 控制器零硬编码实体名

- TableSpec 增字段 aggregate_detail: bool
- Resource / Dataset 置 true,其余 16 个置 false
- controller/crud.rs 删掉 find("Resource")/find("Dataset") + expect,改为遍历 ALL_SPECS 按 flag 注册
- 补单测 aggregate_detail_is_pinned_to_the_resource_side(聚合体 ⊆ 有子表)
- 边界账本删掉已失效的两条 CP3(controller/crud.rs find(...))
This commit is contained in:
admin committed 2026-10-26 20:26:19 +08:00
1 parent c4840a3aa2
commit 8b4721601f
21 files changed
+62 -35

No files matched your search

-2
View File
@@ -16,6 +16,4 @@ CP1 auth.rs /api/ssw/tdc/ C5:白名单清单待归业务层 src/tdc/support/pu
CP1 db.rs tdc_identity C4:schema 探针待通用化(改查 pg_catalog.pg_tables) B1b
CP2 session.rs Identity 假阳性:SessionKind::Identity 是**会话口径**,不是业务实体 tdc_identity 永久
CP2 auth.rs SessionKind::Identity 假阳性:Principal::Session 分支里的会话种类,不是业务实体 永久
CP3 controller/crud.rs find("Resource") C3:聚合详情注册待改成遍历 spec B1b
CP3 controller/crud.rs find("Dataset") C3:聚合详情注册待改成遍历 spec B1b
CP4 auth.rs /api/ C5:白名单清单待归业务层(含 /api/oauth/Login 与 /api/health 两条) B1b