-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NABI-101-refactor : 컨벤션 맞게 네이밍, 개행, 인덴트 수정
- Loading branch information
1 parent
dd849f3
commit ed10d85
Showing
9 changed files
with
44 additions
and
105 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/main/java/org/prgrms/nabimarketbe/domain/user/dto/UserLoginResponseDTO.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 |
---|---|---|
@@ -1,9 +1,18 @@ | ||
package org.prgrms.nabimarketbe.domain.user.dto; | ||
|
||
import org.prgrms.nabimarketbe.domain.user.entity.User; | ||
import org.prgrms.nabimarketbe.global.security.jwt.dto.TokenResponseDTO; | ||
|
||
public record UserLoginResponseDTO( | ||
UserResponseDto user, | ||
TokenResponseDTO token | ||
) { | ||
|
||
public static UserLoginResponseDTO from(User user, TokenResponseDTO tokenResponseDTO) { | ||
UserResponseDto userResponseDto = UserResponseDto.from(user); | ||
|
||
UserLoginResponseDTO response = new UserLoginResponseDTO(userResponseDto, tokenResponseDTO); | ||
|
||
return response; | ||
} | ||
} |
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
12 changes: 5 additions & 7 deletions
12
src/main/java/org/prgrms/nabimarketbe/oauth2/google/domain/OAuth2.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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
package org.prgrms.nabimarketbe.oauth2.google.domain; | ||
|
||
import org.prgrms.nabimarketbe.oauth2.google.dto.GoogleOAuth2Token; | ||
import org.prgrms.nabimarketbe.oauth2.google.dto.GoogleUser; | ||
import org.prgrms.nabimarketbe.oauth2.google.dto.GoogleOAuth2TokenDTO; | ||
import org.prgrms.nabimarketbe.oauth2.google.dto.GoogleUserInfoDTO; | ||
import org.springframework.http.ResponseEntity; | ||
|
||
import com.fasterxml.jackson.core.JsonProcessingException; | ||
|
||
public interface OAuth2 { | ||
|
||
String getOAuth2RedirectUrl(); | ||
|
||
ResponseEntity<String> requestAccessToken(String code); | ||
|
||
GoogleOAuth2Token getAccessToken(ResponseEntity<String> accessToken) throws JsonProcessingException; | ||
|
||
ResponseEntity<String> requestUserInfo(GoogleOAuth2Token googleOAuthToken); | ||
GoogleOAuth2TokenDTO getAccessToken(ResponseEntity<String> accessToken) throws JsonProcessingException; | ||
|
||
GoogleUser parseUserInfo(ResponseEntity<String> userInfo) throws JsonProcessingException; | ||
ResponseEntity<String> requestUserInfo(GoogleOAuth2TokenDTO googleOAuthToken); | ||
|
||
GoogleUserInfoDTO parseUserInfo(ResponseEntity<String> userInfo) throws JsonProcessingException; | ||
} |
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
64 changes: 0 additions & 64 deletions
64
src/main/java/org/prgrms/nabimarketbe/oauth2/google/dto/OAuth2Attributes.java
This file was deleted.
Oops, something went wrong.