You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SliverHorn 95bdd2419e feature: 集成华为云obs 对象存储 3 years ago
..
api/v1 update: 3 years ago
config feature: 集成华为云obs 对象存储 3 years ago
core 增加pgsql获取数据库和表方法 更新版本为V2.4.6 Beta 3 years ago
docs 清理无用的配置文件 web-flow (#743) 3 years ago
global feat:black jwt 3 years ago
initialize 增加pgsql获取数据库和表方法 更新版本为V2.4.6 Beta 3 years ago
middleware 优化:casbin验证优化,在中间件中获取请求的 Path,在CasbinModel定义中直接使用keymatch2进行匹配,减少一次path获取和函数调用。 3 years ago
model update: 3 years ago
packfile 修复初始化时跳出的两个bug提示(不影响使用) 3 years ago
plugin refactor: 3 years ago
resource 优化:casbin验证优化,在中间件中获取请求的 Path,在CasbinModel定义中直接使用keymatch2进行匹配,减少一次path获取和函数调用。 3 years ago
router update: 3 years ago
service 优化:casbin验证优化,在中间件中获取请求的 Path,在CasbinModel定义中直接使用keymatch2进行匹配,减少一次path获取和函数调用。 3 years ago
source fixed: source/system/api 数据错误 3 years ago
utils feature: 集成华为云obs 对象存储 3 years ago
Dockerfile 样式细节调整 (#726) 3 years ago
README.md update: server/README.md 3 years ago
config.docker.yaml feature: 集成华为云obs 对象存储 3 years ago
config.yaml feature: 集成华为云obs 对象存储 3 years ago
go.mod feature: 集成华为云obs 对象存储 3 years ago
go.sum feature: 集成华为云obs 对象存储 3 years ago
main.go refactor: 3 years ago

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接口封装