后端结构
text
com.hcp
├── hcp-ui // 前端框架 [80]
├── hcp-gateway // 网关模块 [38080]
├── hcp-auth // 认证中心 [39200]
├── hcp-api // 接口模块
│ └── hcp-api-system // 系统接口
├── hcp-common // 通用模块
│ └── hcp-common-core // 核心模块
│ └── hcp-common-datascope // 权限范围
│ └── hcp-common-datasource // 多数据源
│ └── hcp-common-log // 日志记录
│ └── hcp-common-redis // 缓存服务
│ └── hcp-common-security // 安全模块
│ └── hcp-common-swagger // 系统接口
│ └── hcp-common-message // 消息通知
│ └── hcp-common-mybatisplus // mybatis增强组件
├── hcp-modules // 业务模块
│ └── hcp-system // 系统模块 [39201]
│ └── hcp-gen // 代码生成 [39202]
│ └── hcp-file // 文件服务 [39300]
│ └── hcp-mp // 小程序服务 [39208]
│ └── hcp-simulator // 模拟器模块 [39207]
│ └── hcp-operaor // 运营端模块 [39208]
├── hcp-visual // 图形化管理模块
│ └── hcp-visual-monitor // 监控中心 [39100]
├──pom.xml // 公共依赖
前端结构
text
├── build // 构建相关
├── bin // 执行脚本
├── public // 公共文件
│ ├── favicon.ico // favicon图标
│ └── index.html // html模板
├── src // 源代码
│ ├── api // 所有请求
│ ├── assets // 主题 字体等静态资源
│ ├── components // 全局公用组件
│ ├── directive // 全局指令
│ ├── layout // 布局
│ ├── router // 路由
│ ├── store // 全局 store管理
│ ├── utils // 全局公用方法
│ ├── views // view
│ ├── App.vue // 入口页面
│ ├── main.js // 入口 加载组件 初始化等
│ ├── permission.js // 权限管理
│ └── settings.js // 系统配置
├── .editorconfig // 编码格式
├── .env.development // 开发环境配置
├── .env.production // 生产环境配置
├── .env.staging // 测试环境配置
├── .eslintignore // 忽略语法检查
├── .eslintrc.js // eslint 配置项
├── .gitignore // git 忽略项
├── babel.config.js // babel.config.js
├── package.json // package.json
└── vue.config.js // vue.config.js
小程序目录
text
┌─components uni-app组件目录
│ └─comp-a.vue 可复用的a组件
├─platforms 存放各平台专用页面的目录,详见
├─pages 业务页面文件存放的目录
│ ├─index
│ │ └─index.vue index页面
│ └─list
│ └─list.vue list页面
├─static 存放应用引用静态资源(如图片、视频等)的目录,注意:静态资源只能存放于此
├─wxcomponents 存放小程序组件的目录,详见
├─main.js Vue初始化入口文件
├─App.vue 应用配置,用来配置App全局样式以及监听 应用生命周期
├─manifest.json 配置应用名称、appid、logo、版本等打包信息,详见
└─pages.json 配置页面路由、导航条、选项卡等页面类信息,详见