# idea-ddd-meta **Repository Path**: ynding/idea-ddd-meta ## Basic Information - **Project Name**: idea-ddd-meta - **Description**: DDD model - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2022-04-26 - **Last Updated**: 2024-12-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # README ### 架构图 * 统一使用sofaboot的sofa分层方式,SOFA 分层是沿袭自蚂蚁 SOFA 工程的传统分层,蚂蚁传统 SOFA 应用通常基于模块化形式进行开发,解决了模块化开发下各模块相互影响的问题。 ![img_1.png](img_1.png) +app name * |—— app (应用目录) * |———— common (基础结构层) * |—————— common-util (公共常量,枚举,异常,日志,Log以及工具类等) * |—————— common-dal (ZDAL配置,SqlMap,DO,DAO接口以及实现) * |—————— common-service-facade (对外暴露的API,DTO,Request,Result等) * |—————— common-service-integration (调用外部服务的Wrapper或者Client等) * |———— core (核心/原子服务层) * |—————— core-model (领域模型,支持校验,追踪,环境上下文等) * |—————— core-service (核心/原子服务,领域模型的仓储,缓存,转换器) * |———— biz (业务逻辑层) * |—————— biz-shared (业务逻辑,入参xxxReq,返回WelfareResult包裹DTO) * |—————— biz-service (对外暴露的API实现类,入参xxxReq,返回DTO) * |———— test (测试层,单元测试的基类,Test Case和Starter) * |—— conf (SOFA 相关配置存放目录,包括sofa, log4j等配置) * |—— pom.xml (总POM文件) 说明: * [结构说明参考](https://blog.csdn.net/qq_34376868/article/details/123089173) * core-model模块直接引用了common-dal、common-service-integration、common-service-facade的包,没有直接引用他们的父模块common,是因为 common是pom格式的而非jar,直接引用并不生效。且在引用上述三个模块时,声明了version 和 scope为compile。 * convert转换器功能定义在core-service模块,而没有和dal 定义在一起,那是因为core-service 是core-model和common-dal之上的模块,只有在这里才可以 对DO、PO、DTO、VO等进行互相转换。 ### Guides The following guides illustrate how to use some features concretely: * [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) * [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) * [Building REST services with Spring](https://spring.io/guides/tutorials/bookmarks/)