From 9aa9cf5d0ec8cebc2a8943252e5093b8f885ed95 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Fri, 10 Jul 2020 00:12:41 +0800 Subject: [PATCH] feat: add log --- apis/system/sysuser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/system/sysuser.go b/apis/system/sysuser.go index 444a5e1b..7575f809 100644 --- a/apis/system/sysuser.go +++ b/apis/system/sysuser.go @@ -4,10 +4,10 @@ import ( "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" "github.com/google/uuid" + log "github.com/sirupsen/logrus" "go-admin/models" "go-admin/tools" "go-admin/tools/app" - log "github.com/sirupsen/logrus" ) // @Summary 列表数据 @@ -34,7 +34,7 @@ func GetSysUserList(c *gin.Context) { pageIndex = tools.StrToInt(err, index) } - data.Username = c.Request.FormValue("userName") + data.Username = c.Request.FormValue("username") data.Status = c.Request.FormValue("status") data.Phone = c.Request.FormValue("phone")