-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] 회원가입 관련 수정
- Loading branch information
Showing
4 changed files
with
79 additions
and
22 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
16 changes: 11 additions & 5 deletions
16
src/main/java/com/pickple/server/api/user/dto/LoginSuccessResponse.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,13 +1,19 @@ | ||
package com.pickple.server.api.user.dto; | ||
|
||
public record LoginSuccessResponse( | ||
String accessToken, | ||
String refreshToken | ||
String guestNickname, | ||
Long guestId, | ||
String hostNickname, | ||
Long hostId, | ||
TokenDto token | ||
) { | ||
public static LoginSuccessResponse of( | ||
final String accessToken, | ||
final String refreshToken | ||
final String guestNickname, | ||
final Long guestId, | ||
final String hostNickname, | ||
final Long hostId, | ||
final TokenDto token | ||
) { | ||
return new LoginSuccessResponse(accessToken, refreshToken); | ||
return new LoginSuccessResponse(guestNickname, guestId, hostNickname, hostId, token); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/pickple/server/api/user/dto/TokenDto.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,11 @@ | ||
package com.pickple.server.api.user.dto; | ||
|
||
public record TokenDto( | ||
String accessToken, | ||
String refreshToken | ||
) { | ||
|
||
public static TokenDto of(String accessToken, String refreshToken) { | ||
return new TokenDto(accessToken, refreshToken); | ||
} | ||
} |
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