# zhst-frame **Repository Path**: reway_wen/zhst-frame ## Basic Information - **Project Name**: zhst-frame - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2019-03-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # zhst-frame #### 介绍 校园单体项目走向了地狱,无法扩展新功能,每一次扩展导致各种各样的问题,近端时间开始进行项目重构,项目架构分配如下。后续项目内代码不提交,但是该架构还需要深入学习。 #### 软件架构
├─zhst-dependencies----------------------------父依赖,管理 jar 版本 
│  │
│  ├─zhst-eureka--------------------------------微服务注册中心
│  │
│  ├─zhst-common--------------------------------微服务公共工具类 
│  │  │
│  │  ├─zhst-common-web------------------web 服务公共依赖管理
│  │  │
│  │  ├─zhst-common-services------------------service 服务公共依赖管理
│  │  |
│  │  ├─zhst-common-bean------------------管理所有的 DTO 与 po
│  │  |
│  ├─zhst-api--------------------------------对外暴露的接口,内部 feign 负载均衡
│  │  │
│  │  ├─zhst-api-order--------------------订单服务 api
│  │  │
│  │  ├─zhst-api-user---------------------用户服务 api
|  |  |
│  │  ├─zhst-api-product------------------商品服务 api
│  │  │
│  ├─zhst-service--------------------------------对外暴露的接口,内部 feign 负载均衡
│  │  │
│  │  ├─zhst-service-order--------------------订单服务提供者
│  │  │
│  │  ├─zhst-service-user---------------------用户服务提供者
|  |  |
│  │  ├─zhst-service-product------------------商品服务提供者
│  │  │
│  │  ├─zhst-service-mq---------------------mqtt、rabbitmq 服务提供者
|  |  |
│  │  ├─zhst-service-redis------------------redis 缓存提供者
│  │  │
│  ├─zhst-zuul-------------------------------- api 网关服务
│  │  │
内部硬性规定: 1. 所有传输到前台服务的对象必须使用 Vo 结尾。 2. 所有 PO DTO VO 需要放在 zhst-common-bean 管理,并注明版本,例如:v1 为首批开发者,v2 为第二批开发者,以此类推。 3. 数据库查询操作尽量单表操作,如需要连接表,最多不超过**三张**表连接 4. 接口返回数据时间不允许超过**三秒**。 5. 代码函数不可超过 100 行,多行重复代码请构造成一个新方法。 注释声明原则: 附: **zhst-api-services 新增请求模板 restTemplate,用于在服务间调用其他模块服务.**