文章目录
1.引言
在上一节《果然新鲜电商项目(01) - 需求讨论与技术选型》主要制定了「需求」和「技术的选型」,架构图如下:
本章来认识项目基本结构!
2.项目结构
注意:含有module的maven类型选择为Pom类型,每个module类型为jar类型。
2.1 公共父类接口(parent)
guoranxinxian-shop
2.2 工具类(common)
guoranxinxian-shop-common-core - - - - - - - - - - - - - - 核心工具类
2.3 分布式基础设施(basics)
guoranxinxian-shop-basics-eureka - - - - - - - - - - - - - 注册中心 8080
guoranxinxian-shop-basics-apollo-config-server- - - - 阿波罗分布式配置中心
guoranxinxian-shop-basics-zuul - - - - - - - - - - - - - - - 统一请求入口 80
guoranxinxian-shop-basics-xxljob - - - - - - - - - - - - - - 分布式任务调度平台
guoranxinxian-shop-basics-lcn - - - - - - - - - - - - - - - - 分布式事务解决框架
guoranxinxian-shop-basics-zipkin - - - - - - - - - - - - - - 分布式调用链系统
2.4 接口层(service)
服务接口中包含内存内容: 「实体类层」、「接口层」
guoranxinxian-shop-service-api-weixin - - - - - - - - - - -微信服务接口
guoranxinxian-shop-service-api-member - - - - - - - - - -会员服务接口
guoranxinxian-shop-service-api-sso - - - - - - - - - - - - -sso服务接口
guoranxinxian-shop-service-api-item - - - - - - - - - - - - -商品服务接口
guoranxinxian-shop-service-api-search - - - - - - - - - - -搜索服务接口
guoranxinxian-shop-service-api-pay- - - - - - - - - - - - - -聚合支付平台
guoranxinxian-shop-service-api-order- - - - - - - - - - - - -订单服务接口
guoranxinxian-shop-service-api-spike- - - - - - - - - - - - -秒杀服务接口
2.5 接口实现层(service- impl)
guoranxinxian-shop-service-weixin - - - - - - - - - - - - - - 微信服务接口实现
guoranxinxian-shop-service-member- - - - - - - - - - - - - 会员服务接口实现
guoranxinxian-shop-service-api-sso - - - - - - - - - - - - - sso服务接口实现
guoranxinxian-shop-service-tem - - - - - - - - - - - - - - - - 商品服务接口实现
guoranxinxian-shop-service-search - - - - - - - - - - - - - -搜索服务接口实现
guoranxinxian-shop-service-pay - - - - - - - - - - - - - - - -聚合支付平台接口实现
guoranxinxian-shop-service-order - - - - - - - - - - - - - - -订单服务接口实现
guoranxinxian-shop-service-spike - - - - - - - - - - - -秒杀服务接口
2.6 门户(portal)
guoranxinxian-shop-portal-web - - - - - - - - - - - - - - - -门户网站
guoranxinxian-shop-portal-sso - - - - - - - - - - - - - - - -单点登陆系统
guoranxinxian-shop-portal-search - - - - - - - - - - - - - -搜索系统
guoranxinxian-shop-portal-spike - - - - - - - - - - - - - - -秒杀系统
guoranxinxian-shop-portal-cms - - - - - - - - - - - - - - - -管理系统
guoranxinxian-shop-portal-pay-web- - - - - - - - - - - - - 支付系统
3. 项目真实结构图
未展开:
展开: