-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [feat] 회원가입시 유저 정보 가져오기 기능 구현 #68 * [chore] spotless 적용 #68 * [fix] email 가져오기 로직 변경 #68 * [refac] transaction 범위 수정 #68
- Loading branch information
Showing
16 changed files
with
132 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
Api/src/main/java/allchive/server/api/auth/model/dto/KakaoUserInfoDto.java
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
Api/src/main/java/allchive/server/api/auth/model/dto/OauthUserInfoDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package allchive.server.api.auth.model.dto; | ||
|
||
|
||
import allchive.server.domain.domains.user.domain.enums.OauthProvider; | ||
import allchive.server.infrastructure.oauth.kakao.dto.KakaoInformationResponse; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class OauthUserInfoDto { | ||
private String email; | ||
private String name; | ||
private OauthProvider oauthProvider; | ||
|
||
@Builder | ||
private OauthUserInfoDto(String email, String name, OauthProvider oauthProvider) { | ||
this.email = email; | ||
this.name = name; | ||
this.oauthProvider = oauthProvider; | ||
} | ||
|
||
public static OauthUserInfoDto fromKakao(KakaoInformationResponse response) { | ||
return OauthUserInfoDto.builder() | ||
.email(response.getEmail()) | ||
.name(response.getNickName()) | ||
.oauthProvider(OauthProvider.KAKAO) | ||
.build(); | ||
} | ||
} | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
Api/src/main/java/allchive/server/api/auth/model/dto/response/OauthUserInfoResponse.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Api/src/main/java/allchive/server/api/common/util/StringParamUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.