File tree Expand file tree Collapse file tree
src/main/java/com/back/web7_9_codecrete_be/domain/users/repository Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .back .web7_9_codecrete_be .domain .users .repository ;
22
3+ import com .back .web7_9_codecrete_be .domain .users .entity .SocialType ;
34import com .back .web7_9_codecrete_be .domain .users .entity .User ;
45import com .back .web7_9_codecrete_be .domain .users .entity .UserStatus ;
56import org .springframework .data .jpa .repository .JpaRepository ;
@@ -19,4 +20,18 @@ List<User> findByIsDeletedTrueAndStatusAndDeletedDateBefore(
1920 LocalDateTime time
2021 );
2122 Optional <User > findByEmailAndIsDeletedTrue (String email );
23+
24+ // 소셜 로그인 관련 추가 메서드
25+
26+ // 소셜 로그인용: 소셜 타입 + 소셜 ID 조회
27+ Optional <User > findBySocialTypeAndSocialId (
28+ SocialType socialType ,
29+ String socialId
30+ );
31+
32+ // 소셜 회원가입용: 이메일 + 소셜 타입 조회
33+ Optional <User > findByEmailAndSocialType (
34+ String email ,
35+ SocialType socialType
36+ );
2237}
You can’t perform that action at this time.
0 commit comments