u
This commit is contained in:
1 parent
2d036f4d95
commit
f373cf956d
22 files changed
+568
-280
No files matched your search
@@ -6,13 +6,11 @@ import (
|
||||
"base-framework/pkg/router"
|
||||
"base-framework/pkg/utils/jwt"
|
||||
"errors"
|
||||
"log"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func Auth() router.HandlerFunc {
|
||||
return func(c *router.Context) {
|
||||
log.Println("[Auth] 开始鉴权")
|
||||
|
||||
tokenHeader := c.Header("Authorization")
|
||||
userIdHeader := c.Header("userId")
|
||||
|
||||
Reference in new issue
Block a user