数据库连接初始化优化

权限部分修改
This commit is contained in:
linwenxiang committed 2021-02-21 14:06:13 +08:00
1 parent 4979fd659f
commit deeb82048b
37 files changed
+726 -721

No files matched your search

+3 -1
View File
@@ -17,5 +17,7 @@ func InitMiddleware(r *gin.Engine) {
// Secure is a middleware function that appends security
r.Use(Secure)
// 链路追踪
r.Use(middleware.Trace())
//r.Use(middleware.Trace())
// 数据库链接
r.Use(middleware.WithContextDb)
}