# Domains 域层说明 本目录按业务域组织代码,每个域独立负责自己的传输层、业务层和模型层。 ## 当前域 | 域 | 说明 | 详细文档 | |---|---|---| | `platform/` | 自建应用(DataLink Platform)与工作流(EASO/Piper) | [README.platform.md](./platform/README.platform.md) | | `bill/` | 费控单据、报销单、发票与 DataLink 实体字典 | [README.bill.md](./bill/README.bill.md) | ## 分层规则 - `api.ts`:只负责 HTTP 请求和响应校验 - `tools.ts`:负责 MCP tool 注册和业务编排 - `types.ts`:Zod schema 与类型定义 Server 入口 `src/server.ts` 只调用 `domains/*/tools.ts`,不直接调用 `api.ts`。