Skip to content

Commit

Permalink
[feat] #15 - reponse 관련 Dto 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarlgnszx committed May 27, 2024
1 parent d3571d1 commit 40b56b2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package server.sopt.week2.common.jwt.dto;

public record CreateTokenByRefreshTokenResponse(
String accessToken
) {

public static CreateTokenByRefreshTokenResponse of(String s) {
return new CreateTokenByRefreshTokenResponse(s);
}
}
13 changes: 13 additions & 0 deletions week2/src/main/java/server/sopt/week2/dto/UserJoinResponse.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package server.sopt.week2.dto;

public record UserJoinResponse(
String accessToken,
String refreshToken,
String userId
) {
public static UserJoinResponse of(
String accessToken, String refreshToken, String userId
){
return new UserJoinResponse(accessToken,refreshToken, userId);
}
}

0 comments on commit 40b56b2

Please sign in to comment.