基于gin框架的demo项目,本项目基于B站视频Go语言 Gin+Vue 前后端分离实战 - OceanLearn https://www.bilibili.com/video/BV1CE411H7bQ?t=7
master分之为后端go代码,vue分支为前端vue代码
- 1.配置文件分环境
- 2.jwt中增加refresh_token,在refresh_token有效期内刷新token
- 3.使用swagger文档管理项目
- 4.使用element-admin搭建后台 同时介绍权限模块的前后端实现
- 5.图片的上传
- 6.gorm关联查询
- 7.自定义gin validator