louyanfeng25 / ddd-demo Goto Github PK
View Code? Open in Web Editor NEWMVC【以mybatis-plus为orm框架】迁移至DDD的demo
MVC【以mybatis-plus为orm框架】迁移至DDD的demo
博主您好,我在掘金看了您写的DDD文章并发现了demo,非常精彩,不过我在对比文章中的工程结构和demo的工程结构发现有些地方对不上,比如domain下并没有adapter,还有聚合根在domain中也是没有的,一点点有疑惑,还望您不要介意,特别感谢您能给出这么好的案例让我们学习。
domain层的代码依赖了application层的命令对象
博主,您好,最近看了下代码,有个不是很懂的地方还请麻烦指教下
UserApplicationService 里面有craete和updateUserName,为什么create 会用到UserCreateAbility去做业务处理,而updateUserName不需要用Ability
我也在探索DDD的一种架构我发现我们之间大致是一致的架构 不过有略微的差别, 特此来讨论一下。
1.我在书中看到domain实体的属性不对外提供getter/setter方法, 只在构造时成立,在构造时通过调用内部private的 set方法来校验参数。(由于在基础层需要把 do 对象转为po对象, 我还是提供了getter方法,目前不知道有什么更好的方案)
2.我把vo与feignclient 提出单独的 rpc层 ,由 api层引用 , 这样可能对我后续微服务组成 引入的代价较小, 以及方便异构服务。
3.我设想是否引入 spring-boot时 应该 按模块引入, 比如 domain模块只引入 依赖导致需要的模块 , api模块引入web模块 (但是还没实现)
4.在领域事件这方面我还没有实现,想要参考您的代码。
以上, 感谢您的阅读,期待您的回复。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.