实现管理员的用户增删改功能

This commit is contained in:
2026-03-27 18:03:19 +08:00
parent 7e8d824ba6
commit 51c377964d
7 changed files with 236 additions and 7 deletions

View File

@@ -74,6 +74,7 @@ func ErrorHandler(c *fiber.Ctx, err error) error {
slog.Warn("未处理的异常", slog.String("type", t.String()), slog.String("error", err.Error()))
}
slog.Warn(message)
c.Set(fiber.HeaderContentType, fiber.MIMETextPlainCharsetUTF8)
return c.Status(code).SendString(message)
}