奇淼(piexlmax 6e6b488558 Merge pull request #631 from songzhibin97/gva_gormv2_dev il y a 3 ans
..
api dd46be1a87 /menu/GetMenuAuthority -> /menu/getMenuAuthority il y a 3 ans
config d767c34012 fmt project il y a 3 ans
core 4a46786d05 修改版本号为V2.4.4正式 il y a 3 ans
docs 87f86daca1 补充遗漏的json type il y a 3 ans
global fb2199c948 fix:修改redis包,使用推荐的v8 il y a 3 ans
initialize 594bf5fc3c 基础架构变更 增加模块化 il y a 3 ans
middleware 594bf5fc3c 基础架构变更 增加模块化 il y a 3 ans
model 87f86daca1 补充遗漏的json type il y a 3 ans
packfile 00e61c81dc 打包静态文件到二进制 il y a 4 ans
resource 9eb9c02dcc Fix jslint error/warning in auto generated code. il y a 3 ans
router 461e01cb05 feat:插件模式尝鲜 il y a 3 ans
service 76a1f79ba9 解决360excel包无法下载的问题 il y a 3 ans
source 2c714e288b 增加多角色功能和角色切换功能 il y a 3 ans
utils 6e6b488558 Merge pull request #631 from songzhibin97/gva_gormv2_dev il y a 3 ans
Dockerfile f96b415d4d Update Dockerfile il y a 3 ans
README.md a6e62f388e update: server/README.md il y a 3 ans
config.docker.yaml c8d1958d2c fix: config.yaml, config.docker.yaml il y a 3 ans
config.yaml 4628b8d799 config提交错误 il y a 3 ans
go.mod 493e399c35 提升基础包等级限制 通过action il y a 3 ans
main.go aff5c425ca 增加 go generate 懒人模式 il y a 3 ans

README.md

server项目结构

├── api
│   └── v1
├── config
├── core
├── docs
├── global
├── initialize
│   └── internal
├── middleware
├── model
│   ├── request
│   └── response
├── packfile
├── resource
│   ├── excel
│   ├── page
│   └── template
├── router
├── service
├── source
└── utils
    ├── timer
    └── upload
文件夹 说明 描述
api api层 api层
--v1 v1版本接口 v1版本接口
config 配置包 config.yaml对应的配置结构体
core 核心文件 核心组件(zap, viper, server)的初始化
docs swagger文档目录 swagger文档目录
global 全局对象 全局对象
initialize 初始化 router,redis,gorm,validator, timer的初始化
--internal 初始化内部函数 gorm 的 longger 自定义,在此文件夹的函数只能由 initialize 层进行调用
middleware 中间件层 用于存放 gin 中间件代码
model 模型层 模型对应数据表
--request 入参结构体 接收前端发送到后端的数据。
--response 出参结构体 返回给前端的数据结构体
packfile 静态文件打包 静态文件打包
resource 静态资源文件夹 负责存放静态文件
--excel excel导入导出默认路径 excel导入导出默认路径
--page 表单生成器 表单生成器 打包后的dist
--template 模板 模板文件夹,存放的是代码生成器的模板
router 路由层 路由层
service service层 存放业务逻辑问题
source source层 存放初始化数据的函数
utils 工具包 工具函数封装
--timer timer 定时器接口封装
--upload oss oss接口封装