Skip to content

Commit

Permalink
删掉测试方法
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbbbbbbbbbbba committed Jan 18, 2024
1 parent fd32162 commit 75c2eda
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions server/internal/controllers/api/user_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit 75c2eda

Please sign in to comment.