diff --git a/model/gmodel/fs_user_logic.go b/model/gmodel/fs_user_logic.go index 3f70b4cf..78b80054 100644 --- a/model/gmodel/fs_user_logic.go +++ b/model/gmodel/fs_user_logic.go @@ -40,8 +40,8 @@ func (u *FsUserModel) FindUserById(ctx context.Context, Id int64) (resp FsUser, return resp, err } -func (u *FsUserModel) FindUserByGoogleId(ctx context.Context, Id int64) (resp *FsUser, err error) { - err = u.db.WithContext(ctx).Model(&FsUser{}).Where("`google_id` = ? and is_del = ?", Id, 0).Take(resp).Error +func (u *FsUserModel) FindUserByGoogleId(ctx context.Context, Id int64) (resp FsUser, err error) { + err = u.db.WithContext(ctx).Model(&FsUser{}).Where("`google_id` = ? and is_del = ?", Id, 0).Take(&resp).Error return resp, err }