feat: 修改jwt逻辑,登出黑名单处理
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"sundynix-go/model/commom/response"
|
||||
"sundynix-go/model/system"
|
||||
systemReq "sundynix-go/model/system/request"
|
||||
"sundynix-go/utils"
|
||||
"sundynix-go/utils/jwt"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.uber.org/zap"
|
||||
@@ -89,7 +89,7 @@ func (m *MenuApi) GetUserMenuTree(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (m *MenuApi) Route(c *gin.Context) {
|
||||
userId := utils.GetUserId(c)
|
||||
userId := jwt.GetUserId(c)
|
||||
routes, err := menuService.GetUserRoutes(userId)
|
||||
if err != nil {
|
||||
global.Logger.Error("获取用户菜单失败!", zap.Error(err))
|
||||
|
||||
Reference in New Issue
Block a user