应用目录结构 ¶
- 支持 addons/模块
- 支持 addons/com/模块(推荐)
├──📂 addons
│ ├──📂 moduleA # -- 模块A
│ ├──📂 config # 配置
│ ├──📂 controller # 控制器
│ ├──📂 models # 模型
│ ├──📂 route # 路由
│ ├──📂 services # 服务
│ ├──📂 process # 进程
│ ├──📂 queue # 队列
│ ├──📄 info.yml # 描述
│
│ ├──📂 comA # -- 厂商A
│ ├──📂 moduleA # -- 厂商A模块A
│ ├──📂 config # 配置
│ ├──📂 controller # 控制器 - 接口
│ ├──📂 business # 商家
│ ├──📂 ucenter # 用户
│ ├──📂 platform # 平台
│ ... # 其他角色
│ ├──📂 models # 模型
│ ├──📂 route # 路由
│ ├──📂 services # 服务
│ ├──📂 process # 进程
│ ├──📂 queue # 队列
│ ├──📄 info.yml # 描述
├──📂 addons
│ ├──📂 moduleA # -- 模块A
│ ├──📂 config # 配置
│ ├──📂 controller # 控制器
│ ├──📂 models # 模型
│ ├──📂 route # 路由
│ ├──📂 services # 服务
│ ├──📂 process # 进程
│ ├──📂 queue # 队列
│ ├──📄 info.yml # 描述
│
│ ├──📂 comA # -- 厂商A
│ ├──📂 moduleA # -- 厂商A模块A
│ ├──📂 config # 配置
│ ├──📂 controller # 控制器 - 接口
│ ├──📂 business # 商家
│ ├──📂 ucenter # 用户
│ ├──📂 platform # 平台
│ ... # 其他角色
│ ├──📂 models # 模型
│ ├──📂 route # 路由
│ ├──📂 services # 服务
│ ├──📂 process # 进程
│ ├──📂 queue # 队列
│ ├──📄 info.yml # 描述
addons
├──── moduleA “模块A”
├──────── docs 文档
├──────── http 应用控制,请求(前台、后台、接口等)
├─────────── admin 后台接口
├─────────── ucenter 用户接口
├─────────── saas 平台接口
├
├──────── logic 逻辑层
├──────── micros 逻辑层
├
├──────── middleware 中间件
├
├──────── sdk 第三方和相关扩展库
├
├──────── route 应用路由
├────────── business.php 商家
├────────── trouist.php 游客
├────────── ucenter.php 用户
├────────── saas.php 平台
├
├──────── services 服务层
├──────── tests 单元测试,配置文档,配合接口文档
├──────── view 视图
addons
├──── moduleA “模块A”
├──────── docs 文档
├──────── http 应用控制,请求(前台、后台、接口等)
├─────────── admin 后台接口
├─────────── ucenter 用户接口
├─────────── saas 平台接口
├
├──────── logic 逻辑层
├──────── micros 逻辑层
├
├──────── middleware 中间件
├
├──────── sdk 第三方和相关扩展库
├
├──────── route 应用路由
├────────── business.php 商家
├────────── trouist.php 游客
├────────── ucenter.php 用户
├────────── saas.php 平台
├
├──────── services 服务层
├──────── tests 单元测试,配置文档,配合接口文档
├──────── view 视图