Files
ning-inspire dc2f329258 feat: 引入 docs/architecture 高阶意图与 arch skills
项目准备阶段落地 C4/ADR 一句话表/术语与核心领域模型;glossary 与 ADR 迁入 architecture,domain-model 区分 Core 与 as-built;新增 tl-arch-plan、tl-arch-sync-back、ba-arch-sync-back,并同步 harness 与团队指南。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 18:02:38 +08:00

20 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Snippet — 常见业务代码模版
存放 DDD 四层架构的代码打样,供新功能开发时参考复制。所有模版均来自本项目的实现代码。
## 目录
| # | 文件 | 层 | 用途 |
|---|------|-----|------|
| 1 | `01-ddd-controller.md` | Adapter | REST Controller 模版 |
| 2 | `02-ddd-appservice.md` | Application | AppService 用例编排模版 |
| 3 | `03-ddd-assembler.md` | Application | Domain → DTO 转换器模版 |
| 4 | `04-ddd-aggregate.md` | Domain | 聚合根模版(含业务守卫方法) |
| 5 | `05-ddd-domain-service.md` | Domain | Domain Service 模版 |
| 6 | `06-ddd-repository-interface.md` | Domain | Repository 接口模版 |
| 7 | `07-ddd-repository-impl.md` | Infrastructure | MyBatis-Plus Repository 实现模版 |
| 8 | `08-ddd-converter.md` | Infrastructure | PO ⟷ Domain 转换器模版 |
| 9 | `09-ddd-po-mapper.md` | Infrastructure | PO 与 Mapper 模版 |
| 10 | `10-global-exception-handler.md` | Infrastructure | 全局异常处理模版 |
| — | `adr.md` | 文档 | ADR 表行示例(追加到 `docs/architecture/tech/adr.md`) |