diff --git a/week2/src/main/java/server/sopt/week2/common/jwt/dto/CreateTokenByRefreshTokenResponse.java b/week2/src/main/java/server/sopt/week2/common/jwt/dto/CreateTokenByRefreshTokenResponse.java new file mode 100644 index 0000000..1033fc9 --- /dev/null +++ b/week2/src/main/java/server/sopt/week2/common/jwt/dto/CreateTokenByRefreshTokenResponse.java @@ -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); + } +} diff --git a/week2/src/main/java/server/sopt/week2/dto/UserJoinResponse.java b/week2/src/main/java/server/sopt/week2/dto/UserJoinResponse.java new file mode 100644 index 0000000..47116f0 --- /dev/null +++ b/week2/src/main/java/server/sopt/week2/dto/UserJoinResponse.java @@ -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); + } +}