教培代码结构
2022-04-02 10:03:02 20 举报
AI智能生成
教培代码结构
作者其他创作
大纲/内容
gm-education-openapi-entity
介绍:存放调用VO实体及基本工具、常量,供内部调用
内部代码结构
java
vo 与外界交互的实体,区分入参返参
params 入参实体
goods 商品入参
order 订单入参
activity 活动入参
...
result 返参实体
goods 商品返参
order 订单返参
activity 活动返参
...
contants 基本常量
enums 通用枚举
expection 通用异常
util 通用工具类
gm-education-openapi-web
介绍:各项数据、业务处理服务,服务于gm-education-openapi-feign,依赖于gm-education-openapi-entity
内部代码结构
java
annotation 自定义注解信息
congfig 系统配置,例如mysql
contains 基本常量
controller 提供feign交互接口
goods 商品交互接口
order 订单交互接口
activity 活动交互接口
...
service 业务接口
goods 商品业务接口
impl 商品业务接口实现
xxService.class
order 订单业务接口
impl 订单业务接口实现
xxService.class
activity 活动业务接口
impl 活动业务接口实现
xxService.class
...
repository 数据库交互内容
po 与数据库等交互实体类
goods 商品实体
order 订单实体
activity 活动实体
...
mapper 数据库交互接口
interceptor 自定义拦截器
mq mq交互类
util 工具类
resource
mapper 数据库交互配置
bootstrap-*.yml 环境配置
logback-spring.xml 日志配置
*.yml 或 *.properties 自定义配置
gm-education-openapi-feign
介绍: 提供对外开放服务 依赖于: gm-education-openapi-entity
内部代码结构
java
service
goods 商品feign
xxService.class
xxFallbackService.class 业务报错降级类
order 订单feign
xxService.class
xxFallbackService.class 业务报错降级类
activity 活动feign
xxService.class
xxFallbackService.class 业务报错降级类
...
0 条评论
下一页