1. V2.0项目结构关系

-ApiGateways :聚合微服务,分发给不同的应用
-WholeShopping.Ocelot :Ocelot 网关
-BuildingBlocks :基础构建块
-EventBus : 事件总线
-WholeShopping.EventBus : 事件总线的抽象
-WholeShopping.RabbitMQ :RabbitMQ 事件总线
-Mobile :移动端(Android,Ios,WeChat)
-WholeShopping.DeviceCenter.WeChat :基础react.js的微信端
-Services:微服务,不同微服务不同文件夹
-DeviceCenter :设备服务
-WholeShopping.DeviceCenter.API :UI层
-WholeShopping.DeviceCenter.Infrastructure:基础设施层
-WholeShopping.DeviceCenter.Application : 应用层
-WholeShopping.DeviceCenter.Domain :领域层(实体层)
-Identity :认证服务
-WholeShopping.IdentityServer.API :IdentityServer4
-Tests: 单元,功能,集成
-WholeShopping.FunctionalTests :面向客户的功能测试
-WholeShopping.IntegrationTests :组合所有单元的集成测试
-WholeShopping.UnitTests : 最小单元测试
-Web:管理端,面向客户的展示端
-WholeShopping.DeviceCenter.Web :基础react.js
image.png

注意:
a. 保证项目的唯一性,命名规范都是以 WholeShopping开头
b. Net5的api 可自动创建 swagger

2. V2.0可扩展架构体系

image.png

3.项目源码

https://gitee.com/Learningsharing_1/v2shopping.git

4.鸣谢

感谢零度课堂,本项目仿零度框架(https://www.xcode.me/)编写,如有侵权请告知。