From d3946cee0413ad18843f0f70d32f8027d441e036 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sun, 9 Jun 2024 14:38:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dusers=E8=A1=A8=E5=8F=98?= =?UTF-8?q?=E6=88=90user=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/user.go | 1 - 1 file changed, 1 deletion(-) diff --git a/dao/user.go b/dao/user.go index 2786d3d..277214c 100644 --- a/dao/user.go +++ b/dao/user.go @@ -35,7 +35,6 @@ func FindUserByID(id int) User { func FindUserByName(name string) User { var user User - DB.Migrator().RenameTable(&User{}, "user") fmt.Println("name:", name) DB.Debug().Where("name = ?", name).First(&user) return user