首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

基于领域驱动设计模式,开发一个售后补偿微服务.zip

行业研究 117.36KB 22 需要积分: 1
立即下载

资源介绍:

基于领域驱动设计模式,开发一个售后补偿微服务。
DDD领域驱动设计-[系列博客](https://www.cnblogs.com/wlandwl/p/ddd_one.html) ### 1.案例说明 1. 该源码为实际项目的脱敏版本,改造过程中,部分功能无法重现。由于售后涉及到订单服务,用户服务等这种跨系统的交互,在案例中基于防腐层做模拟实现。 2. 案例的主要目是展示DDD应用传统项目的流程,具体实现功能的代码不是重点关注的对象,读者可主要了解业务流程,业务规则在分层目录中的实现。切不可对流程中的细节功能做过多分析。 3. 构建实体与需求文档相对应,构建实体的合理性不在本例中过多讨论,本例前提是已经确定实体,聚合根后,具体编码落地的细节展示。 ### 2.案例启动 1. 本例采用SpringBoot构建一个微服务,依赖请参考pom.xml文件。 2. 本例使用了数据库(mysql),相关的数据脚本,请在资源文件中查看,路径为:resources/static/demosql。 3. 先在本地或服务器上面构建好数据库,导入数据表脚本。 4. 修改application.properties,数据库的连接地址请修改为本地可连接的配置地址。 5. 启动或调试DDDApplication.java,项目启动成功后,才可以测试整个流程。 ### 3.案例测试 1. 本例所用的订单信息,是虚拟设置的一个(在源码中可修改订单信息)。且只能基于这个订单号做售后补偿业务测试。 2. 为了便于理解,请查看com.wangling.base.tool.ddd.compensate.CompensateControllerTest.java文件,作者编写了测试用例,读者可基于测试用例一步一步的测试或查看代码。 免责声明: 1.本资源仅供学习和交流使用,不保证其准确性、完整性、及时性或适用性。 2.本资源仅包含一般信息,不构成专业建议。在使用本资源时,请务必自行研究并谨慎决策。 3.我已尽力确保本资源的正确性和合法性,但不对其准确性、完整性和及时性做出保证。 4.本资源不应用于商业用途。 5.在使用本资源的过程中,用户应自行承担所有风险和责任,并遵守相关法律法规。 6.对于因使用本资源而产生的任何损失或损害,我概不负责。 请确保在使用本资源时仔细阅读并遵守以上免责声明。如果您有任何疑问或需要进一步帮助,请联系我。 资源最后修改时间:2024-09-24 21:31:38 22384020084187 d7211c95-000d-4171-8f3b-5e7d0424215b

资源文件列表:

基于领域驱动设计模式,开发一个售后补偿微服务。.zip 大约有129个文件
  1. ddd_demo-main/pom.xml 7.2KB
  2. ddd_demo-main/README.md 2.42KB
  3. ddd_demo-main/src/test/java/com/wangling/base/tool/ddd/compensate/CompensateControllerTest.java 8.07KB
  4. ddd_demo-main/src/test/java/com/wangling/base/tool/TestBase.java 1.22KB
  5. ddd_demo-main/src/main/resources/log4j2.xml 2.81KB
  6. ddd_demo-main/src/main/resources/demosql.sql 5.94KB
  7. ddd_demo-main/src/main/resources/application.properties 841B
  8. ddd_demo-main/src/main/java/com/ddd/demo/configuration/mysql/DemoSqlSessionFactoryBean.java 1.46KB
  9. ddd_demo-main/src/main/java/com/ddd/demo/configuration/executor/RequestContextRunnable.java 1.77KB
  10. ddd_demo-main/src/main/java/com/ddd/demo/configuration/executor/ThreadPoolExecutorAdapter.java 3.61KB
  11. ddd_demo-main/src/main/java/com/ddd/demo/configuration/executor/second/TaskAdapterDecorator.java 909B
  12. ddd_demo-main/src/main/java/com/ddd/demo/configuration/executor/DefaultUncaughtExceptionHandler.java 332B
  13. ddd_demo-main/src/main/java/com/ddd/demo/configuration/executor/RequestContextCallable.java 1.77KB
  14. ddd_demo-main/src/main/java/com/ddd/demo/configuration/executor/UncaughtExceptionHandler.java 285B
  15. ddd_demo-main/src/main/java/com/ddd/demo/configuration/AsyncConfiguration.java 3.64KB
  16. ddd_demo-main/src/main/java/com/ddd/demo/configuration/DataBaseConfiguration.java 2.93KB
  17. ddd_demo-main/src/main/java/com/ddd/demo/configuration/SpringMvcConfiguration.java 750B
  18. ddd_demo-main/src/main/java/com/ddd/demo/feign/order/dto/CreateOrderRequest.java 857B
  19. ddd_demo-main/src/main/java/com/ddd/demo/feign/order/OrderFeign.java 2.13KB
  20. ddd_demo-main/src/main/java/com/ddd/demo/feign/order/OrderFeignImpl.java 238B
  21. ddd_demo-main/src/main/java/com/ddd/demo/feign/user/dto/UserResponse.java 1.06KB
  22. ddd_demo-main/src/main/java/com/ddd/demo/feign/user/UserFeignImpl.java 235B
  23. ddd_demo-main/src/main/java/com/ddd/demo/feign/user/UserFeign.java 910B
  24. ddd_demo-main/src/main/java/com/ddd/demo/util/BusinessDataIllegalException.java 1.59KB
  25. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/dto/CompensateDto.java 2.4KB
  26. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/controller/CompensateController.java 4.52KB
  27. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateUpdateDutyCommand.java 485B
  28. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/dealbill/DealBillCreateCommand.java 395B
  29. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateApplyCommand.java 598B
  30. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateBillCommand.java 805B
  31. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateCheckCommand.java 230B
  32. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateCancelCommand.java 231B
  33. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateFileLinkCommand.java 527B
  34. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateDealCommand.java 229B
  35. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateUpdateStateCommand.java 385B
  36. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateOfflineCommand.java 724B
  37. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateStrategyCommand.java 969B
  38. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/CompensateBaseBillCommand.java 471B
  39. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/strategy/CompensateStateChangeCommand.java 509B
  40. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/strategy/StrategyGoodsCommand.java 605B
  41. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/strategy/StrategyNoGoodsCommand.java 452B
  42. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/command/strategy/StrategySupplyAgainCommand.java 698B
  43. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/query/CompensateBillQuery.java 789B
  44. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/event/OrderFeedbackEvent.java 481B
  45. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/compensate/event/RefundFeedbackEvent.java 507B
  46. ddd_demo-main/src/main/java/com/ddd/demo/ddd/userinterfaces/package-info.java 2.41KB
  47. ddd_demo-main/src/main/java/com/ddd/demo/ddd/application/compensate/service/impl/CompensateEventServiceImpl.java 4.98KB
  48. ddd_demo-main/src/main/java/com/ddd/demo/ddd/application/compensate/service/impl/CompensateBusinessServiceImpl.java 10.76KB
  49. ddd_demo-main/src/main/java/com/ddd/demo/ddd/application/compensate/service/CompensateEventService.java 1.04KB
  50. ddd_demo-main/src/main/java/com/ddd/demo/ddd/application/compensate/service/CompensateBusinessService.java 2.16KB
  51. ddd_demo-main/src/main/java/com/ddd/demo/ddd/application/compensate/event/CompensateBillStateListener.java 881B
  52. ddd_demo-main/src/main/java/com/ddd/demo/ddd/application/compensate/event/CompensateDealBillStateEvent.java 411B
  53. ddd_demo-main/src/main/java/com/ddd/demo/ddd/application/compensate/event/CompensateDealBillStateModify.java 745B
  54. ddd_demo-main/src/main/java/com/ddd/demo/ddd/application/package-info.java 1.04KB
  55. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/database/CompensateDo.java 1.95KB
  56. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/database/CompensateDealLogDo.java 924B
  57. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/repository/CompensateBillRepositoryImpl.java 4.25KB
  58. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/repository/CompensateDealBillRepositoryImpl.java 3.79KB
  59. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/assembler/CompensateConvert.java 1.05KB
  60. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/assembler/CompensateAssembler.java 4.97KB
  61. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/config/CompensateConfig.java 1.16KB
  62. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/config/CompensateConfiguration.java 901B
  63. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/enums/GoodsTypeEnum.java 660B
  64. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/enums/CreatorTypeEnum.java 1.56KB
  65. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/enums/ReplayAttributeEnum.java 2.06KB
  66. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/enums/CheckTypeEnum.java 1.56KB
  67. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/enums/CompensationStrategyEnum.java 2.01KB
  68. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/enums/CstateEnum.java 2.25KB
  69. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/enums/CompensateDealBillStateEnum.java 1.05KB
  70. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/enums/RepaywayEnum.java 1.77KB
  71. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/enums/DutytypeEnum.java 1.56KB
  72. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/enums/DealBillWayEnum.java 747B
  73. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/exception/CompensateException.java 989B
  74. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/exception/CompensateFailEnum.java 6.71KB
  75. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/acl/impl/CompensateBusinessFacadeImpl.java 3.9KB
  76. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/acl/impl/CompensateSelectFacadeImpl.java 2.22KB
  77. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/acl/CompensateSelectFacade.java 1.12KB
  78. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/compensate/acl/CompensateBusinessFacade.java 1.36KB
  79. ddd_demo-main/src/main/java/com/ddd/demo/ddd/infrastructure/package-info.java 1.13KB
  80. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/vo/OrderV.java 796B
  81. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/vo/OrderReturnV.java 522B
  82. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/vo/CompensateFeedbackStrategyV.java 385B
  83. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/vo/GoodsInfoV.java 921B
  84. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/vo/OrderGoodsV.java 1.46KB
  85. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/vo/CompensateBillId.java 318B
  86. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/vo/RefundBackV.java 504B
  87. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/vo/CompensateDealBillId.java 328B
  88. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/vo/StrategyNoGoodsV.java 1.02KB
  89. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/repository/CompensateDealBillRepository.java 663B
  90. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/repository/CompensateBillRepository.java 2.01KB
  91. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/entity/StrategyGoodsE.java 1.53KB
  92. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/entity/StrategySupplyAgainE.java 1.51KB
  93. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/entity/CompensateStrategyE.java 3.63KB
  94. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/aggregate/CompensateDealBillA.java 2.22KB
  95. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/aggregate/CompensateBillA.java 6.36KB
  96. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/impl/CompensateDealBillDomainServiceImpl.java 4.23KB
  97. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/impl/CompensateBillDomainServiceImpl.java 2.77KB
  98. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/deal/BackHurryServiceImpl.java 1.22KB
  99. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/deal/RefundMoneyServiceImpl.java 1.76KB
  100. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/deal/OrderRepeatServiceImpl.java 2.31KB
  101. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/deal/CompensateDealHandler.java 931B
  102. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/save/AbstractCompensateSave.java 2.32KB
  103. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/save/CompensateBaseHandler.java 753B
  104. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/save/CompensateSaveHandler.java 646B
  105. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/save/strategy/StrategyNoGoodsServiceImpl.java 1.33KB
  106. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/save/strategy/StrategySupplyAgainServiceImpl.java 2.92KB
  107. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/save/strategy/StrategyGoodsServiceImpl.java 5.03KB
  108. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/check/CompensateCheckHandler.java 646B
  109. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/check/AbstractCompensateCheck.java 776B
  110. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/check/check/CompensateAutoCheckServiceImpl.java 1.68KB
  111. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/handler/check/check/CompensateManualCheckServiceImpl.java 1.37KB
  112. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/CompensateDealBillDomainService.java 710B
  113. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/service/CompensateBillDomainService.java 1.02KB
  114. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/factory/impl/CompensateDealBillFactoryImpl.java 3.67KB
  115. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/factory/impl/CompensateBillFactoryImpl.java 5.99KB
  116. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/factory/CompensateBillFactory.java 1.24KB
  117. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/compensate/factory/CompensateDealBillFactory.java 1.56KB
  118. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/base/BaseID.java 411B
  119. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/base/BaseEntity.java 346B
  120. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/base/BaseRepository.java 641B
  121. ddd_demo-main/src/main/java/com/ddd/demo/ddd/domain/package-info.java 1.47KB
  122. ddd_demo-main/src/main/java/com/ddd/demo/ddd/package-info.java 1.4KB
  123. ddd_demo-main/src/main/java/com/ddd/demo/mapper/compensate/CompensateDealBillMapper.java 1.36KB
  124. ddd_demo-main/src/main/java/com/ddd/demo/mapper/compensate/CompensateBillMapper.java 1.67KB
  125. ddd_demo-main/src/main/java/com/ddd/demo/annotation/Enhancer.java 373B
  126. ddd_demo-main/src/main/java/com/ddd/demo/sqlprovider/compensate/CompensateBillSqlProvider.java 3.31KB
  127. ddd_demo-main/src/main/java/com/ddd/demo/sqlprovider/compensate/CompensateDealBillSqlProvider.java 1.74KB
  128. ddd_demo-main/src/main/java/com/ddd/demo/interceptor/UserContextInterceptor.java 3.64KB
  129. ddd_demo-main/src/main/java/com/ddd/demo/DDDApplication.java 727B
0评论
提交 加载更多评论
其他资源 该框架是基于消息队列的分布式事务解决方案.zip
该框架是基于消息队列的分布式事务解决方案.zip
iFRPFILE AIO v2.8.6.zip
iFRPFILE AIO v2.8.6.zip
梦幻西游道人j20240924
梦幻西游道人是梦幻西游里面的一个NPC,主要是刷全服最实惠的高级兽决和其他很好用的比较贵的东西,在长安城、傲来国、长寿村中的任意一个场景出现,一般会出现30分钟,不过东西一般都被秒刷。 梦幻西游道人出现时间解析如下: 1.梦幻西游道人出现时间一直都保持着一年出现两次的规律,即2、3月份的元宵节期间来一次,9月份的教师节期间出现一次。 2.云游道人每个整点(0:00至7:00不出现)会在长安城、傲来国、长寿村中的任意一个场景出现,每次出现后停留时间为30分钟。
数据结构C语言版PPT-230901.zip
数据结构C语言版PPT-230901.zip
数据结构C语言版PPT-230901.zip 数据结构C语言版PPT-230901.zip 数据结构C语言版PPT-230901.zip
33种设计模式实现(C、C++).zip
33种设计模式实现(C、C++)
常见的设计模式Django撰写.zip
常见的设计模式Django撰写
(2015)(Python)24种设计模式.zip
(2015)(Python)24种设计模式
《大话设计模式》Go源码.zip
《大话设计模式》Go源码