Files
ai4se-harness-suite/harness-installer/templates/docs/standards/templates
ning-inspire 26975e5c3a Initial commit: ai4se-harness-suite
Import harness suite (skills, installers, overnight-runner, docs) as a fresh history for InspireChina.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 09:57:41 +08:00
..
2026-11-17 09:57:41 +08:00

代码模版(Snippet)

存放常见业务代码模版,供新功能开发时 参考复制。所有模版都应来自项目真实实现代码。

目录

# 文件 层 用途
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 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 全局异常处理模版

模版里的包名请统一替换成实际项目的包名后再复制使用。