From 9461cf8416e5b745a5631fe24703dcfb7aee2d35 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 23 三月 2024 16:35:02 +0800
Subject: [PATCH] swag 提交
---
pkg/contextx/contextx.go | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/pkg/contextx/contextx.go b/pkg/contextx/contextx.go
index 958df06..6137a2c 100644
--- a/pkg/contextx/contextx.go
+++ b/pkg/contextx/contextx.go
@@ -4,7 +4,6 @@
"github.com/gin-gonic/gin"
"net/http"
"srm/pkg/ecode"
- "srm/pkg/logx"
)
type (
@@ -29,14 +28,14 @@
return
}
- defer func() {
- query := r.ctx.Request.URL.RawQuery
- if query != "" {
- query = "?" + query
- }
- urlPath := r.ctx.Request.URL.Path
- logx.Infof("%s | %s %s | uid: %s | %+v", ctx.ClientIP(), r.ctx.Request.Method, urlPath+query, r.GetUserId(), params)
- }()
+ //defer func() {
+ // query := r.ctx.Request.URL.RawQuery
+ // if query != "" {
+ // query = "?" + query
+ // }
+ // urlPath := r.ctx.Request.URL.Path
+ // logx.Infof("%s | %s %s | uid: %s | %+v", ctx.ClientIP(), r.ctx.Request.Method, urlPath+query, r.GetUserId(), params)
+ //}()
// validate params
if params != nil {
--
Gitblit v1.8.0