From 638d3d8bc46d580bc5e9563dc1c27c144357e3db Mon Sep 17 00:00:00 2001 From: SugarMGP <2350745751@qq.com> Date: Fri, 18 Oct 2024 16:53:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/userController/auth.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/controllers/userController/auth.go b/app/controllers/userController/auth.go index 555df65..ac077f6 100644 --- a/app/controllers/userController/auth.go +++ b/app/controllers/userController/auth.go @@ -13,13 +13,11 @@ import ( ) type autoLoginForm struct { - Code string `json:"code" binding:"required"` - LoginType string `json:"type"` // 未使用 + Code string `json:"code" binding:"required"` } type passwordLoginForm struct { - Username string `json:"username" binding:"required"` - Password string `json:"password" binding:"required"` - LoginType string `json:"type"` // 未使用 + Username string `json:"username" binding:"required"` + Password string `json:"password" binding:"required"` } func AuthByPassword(c *gin.Context) {