This commit is contained in:
macbook-maxwell 2024-10-08 20:01:04 +08:00
parent 077bdf3a45
commit 4e241df005

View File

@ -16,7 +16,7 @@ import (
func GetUserInfo(redisClient *redis.Storage) fiber.Handler {
return func(c *fiber.Ctx) error {
// 获取POST 请求参数
apiUser models.APIUser
var apiUser models.APIUser
if err := c.BodyParser(&apiUser); err != nil {
return c.Status(http.StatusUnauthorized).JSON(fiber.Map{
"message": "获取信息失败,参数错误",