From 75c2eda5e4f1fda1a9a8dba731fef162c94149be Mon Sep 17 00:00:00 2001 From: mlogclub Date: Thu, 18 Jan 2024 09:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E6=8E=89=E6=B5=8B=E8=AF=95=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/internal/controllers/api/user_controller.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server/internal/controllers/api/user_controller.go b/server/internal/controllers/api/user_controller.go index 49aa6cb0d..1f80fb6ec 100644 --- a/server/internal/controllers/api/user_controller.go +++ b/server/internal/controllers/api/user_controller.go @@ -5,7 +5,6 @@ import ( "bbs-go/internal/pkg/errs" "bbs-go/internal/pkg/msg" "bbs-go/internal/pkg/validate" - "log/slog" "strconv" "strings" "time" @@ -28,15 +27,6 @@ type UserController struct { Ctx iris.Context } -func (c *UserController) GetTest() *web.JsonResult { - go func() { - for { - slog.Info("测试日志", slog.Any("now", dates.NowTimestamp())) - } - }() - return web.JsonSuccess() -} - // 获取当前登录用户 func (c *UserController) GetCurrent() *web.JsonResult { user := services.UserTokenService.GetCurrent(c.Ctx)