refactor: add shared logging crate
This commit is contained in:
@@ -258,6 +258,7 @@ server-rs/
|
||||
│ ├─ module-ai/ # AI 编排模块 crate
|
||||
│ ├─ shared-contracts/ # HTTP DTO / SSE event / 前后端兼容 contract
|
||||
│ ├─ shared-kernel/ # 跨模块共享领域类型、ID、枚举、值对象
|
||||
│ ├─ shared-logging/ # 工作区统一日志初始化与 tracing subscriber 基础设施
|
||||
│ ├─ platform-auth/ # JWT、cookie、provider adapter
|
||||
│ ├─ platform-oss/ # OSS 直传、签名、对象管理
|
||||
│ ├─ platform-llm/ # DashScope / Ark / 其他模型适配
|
||||
@@ -277,7 +278,8 @@ server-rs/
|
||||
3. `crates/module-*` 保持与当前业务模块边界一一对应,已明确退出本轮的 `editor` 遗留模块除外;必要时可在 crate 内部再拆 `application`、`domain`、`spacetime` 子层次。
|
||||
4. `crates/shared-contracts/` 负责与当前前端兼容的 JSON / SSE 协议。
|
||||
5. `crates/shared-kernel/` 只放跨模块复用的数据结构和规则,不碰框架。
|
||||
6. `crates/platform-*` 统一承接三方供应商与平台适配。
|
||||
6. `crates/shared-logging/` 负责统一日志初始化、过滤器解析与 subscriber 基础设施,不承接 HTTP 业务语义。
|
||||
7. `crates/platform-*` 统一承接三方供应商与平台适配。
|
||||
|
||||
命名补充说明:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user