测试登录成功

This commit is contained in:
eson
2023-07-10 17:38:44 +08:00
parent 53175d539c
commit 8f95be2ba5
3 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ type UserBasicInfoForSave struct {
}
func (u *FsUserModel) FindUserByEmail(ctx context.Context, emailname string) (resp FsUser, err error) {
err = u.db.WithContext(ctx).Model(&FsUser{}).Where("`email` = ?", emailname).First(&resp).Error
err = u.db.WithContext(ctx).Model(&FsUser{}).Where("`email` = ?", emailname).Take(&resp).Error
return resp, err
}