refactor: 明确多品牌后台工作区语义
This commit is contained in:
1 parent
a8a37c179e
commit
1ea757555d
7 files changed
+87
-4
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# 多品牌后台与 API 架构收口
|
||||
|
||||
## 目标
|
||||
|
||||
让后台明确运行在“当前品牌工作区”上下文中,让品牌内容、模板、业务提供项、信任内容和咨询数据都属于当前品牌;同时拆分 API Controller,避免 `main.ts` 继续成为业务代码集中点。
|
||||
|
||||
## 原则
|
||||
|
||||
- `brandId` 来自认证后的 membership,不信任客户端传入。
|
||||
- 后台页面表达“当前品牌工作区”,而不是假设系统只有一个品牌。
|
||||
- Controller 只做 transport,业务查询和状态逻辑进入 feature service。
|
||||
- `main.ts` 只保留应用装配和模块注册。
|
||||
- 每次拆分保持现有 API 路径和响应契约不变。
|
||||
|
||||
## 验收
|
||||
|
||||
- 后台导航和页面显示当前品牌上下文。
|
||||
- 多品牌授权测试继续通过。
|
||||
- API Controller 按 public、customer、admin feature 拆分。
|
||||
- API、Admin build、miniapp fixture 全量通过。
|
||||
Reference in new issue
Block a user