From f851fa7727e4b2384bd5c32793bd58c07e55a53d Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期四, 12 十二月 2019 14:24:24 +0800 Subject: [PATCH] FindAllFile add page and size --- middlewares/auth/jwt.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/middlewares/auth/jwt.go b/middlewares/auth/jwt.go index aadecf4..37b4fc3 100644 --- a/middlewares/auth/jwt.go +++ b/middlewares/auth/jwt.go @@ -50,7 +50,7 @@ return authJwtToken.Valid } -func (jwtAuth *jwtAuthManager) User(c *gin.Context) interface{} { +func (jwtAuth *jwtAuthManager) User(c *gin.Context) map[string]interface{} { var jwtToken *jwtLib.Token if jwtUser, exist := c.Get("User"); !exist { tokenStr := strings.Replace(c.Request.Header.Get("Authorization"), "Bearer ", "", -1) -- Gitblit v1.8.0