# gfeisi **Repository Path**: haozing/gfeisi ## Basic Information - **Project Name**: gfeisi - **Description**: GoFrame 多模块项目结构【飞思】 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-05 - **Last Updated**: 2022-04-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GoFrame 多模块项目结构 ### 安装 安装下载: ```shell git clone https://gitee.com/haozing/gfeisi.git ``` 初始化项目 ```shell go mod init NAME ``` 下载依赖 ```shell go mod tidy ``` ### 启动次序 main -> boot:boot.go -> app:app.go -> modules ### 项目结构 app:项目 --dao:有gf工具自动生成,配置好config/config.toml中[[gfcli.gen.dao]] 然后,运行命令行gf gen dao --defines:公共数据通用结构定义,参数、验证等 --middlewares:公共中间件文件 --model:有gf工具自动生成,配置好config/config.toml中[[gfcli.gen.dao]] 然后,运行命令行gf gen dao --modules:模块代码 ----demo:demo模块 ------demo.go:模块启动初始化文件 ------internal:私有代码部分 --------api:面向前端的接口部分 --------define:模块内部通用结构定义,参数、验证等 --------middleware:模块内部中间件文件 --------router:模块内部路由文件 --------service:模块服务层 --------web:前端渲染层 --router:公共路由 --services:公共服务区层 --utils:工具 --app.go:项目启动文件,初始化文件