From e8b9db1df57785e3ecdcd86086b1a753c48e440e Mon Sep 17 00:00:00 2001 From: zhaoyidong Date: Sat, 13 Aug 2022 17:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=A8=A1=E6=9D=BF=E4=B8=AD?= =?UTF-8?q?=E9=97=B4=E4=BB=B6=E9=87=8D=E5=A4=8D=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit go-admin app -n 创建目录,重复初始化会导致获取不到body中的参数 --- template/router.template | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/template/router.template b/template/router.template index 010bb03..247ca32 100644 --- a/template/router.template +++ b/template/router.template @@ -34,9 +34,6 @@ func InitRouter() { os.Exit(-1) } - r.Use(common.Sentinel()). - Use(common.RequestId(pkg.TrafficKey)) - common.InitMiddleware(r) // the jwt middleware authMiddleware, err := common.AuthInit() if err != nil { @@ -75,4 +72,4 @@ func checkRoleRouter(r *gin.Engine, authMiddleware *jwtauth.GinJWTMiddleware) { for _, f := range routerCheckRole { f(v, authMiddleware) } -} \ No newline at end of file +}