feat(user):通过完成用户检索功能,继续确定项目的基本代码结构。

This commit is contained in:
徐涛
2023-06-01 12:04:03 +08:00
parent 71f39c8c2f
commit 9aa32d99b9
7 changed files with 219 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ import (
func SessionRecovery(c *fiber.Ctx) error {
if auth := c.Get("Authorization", ""); len(auth) > 0 {
token := strings.Fields(auth)[1]
session, err := cache.RetreiveSession(token)
session, err := cache.RetrieveSession(token)
if err == nil && session != nil {
c.Locals("session", session)