From 4772fb9aa1076c23caee94034df5a1c0e4172419 Mon Sep 17 00:00:00 2001 From: mybloom Date: Thu, 9 Jun 2022 22:22:56 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20LoginResponse=20=EC=97=90=20=EC=A0=95?= =?UTF-8?q?=EC=A0=81=ED=8C=A9=ED=86=A0=EB=A6=AC=20=EB=A9=94=EC=84=9C?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80=20(ios-h/airbnb#35)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/team4/airbnb/auth/dto/LoginResponse.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/BE/src/main/java/org/team4/airbnb/auth/dto/LoginResponse.java b/BE/src/main/java/org/team4/airbnb/auth/dto/LoginResponse.java index 941a26512..9999dc42c 100644 --- a/BE/src/main/java/org/team4/airbnb/auth/dto/LoginResponse.java +++ b/BE/src/main/java/org/team4/airbnb/auth/dto/LoginResponse.java @@ -1,14 +1,27 @@ package org.team4.airbnb.auth.dto; +import lombok.AccessLevel; +import lombok.AllArgsConstructor; +import lombok.Builder; import lombok.Getter; import lombok.Setter; @Getter @Setter +@Builder +@AllArgsConstructor(access = AccessLevel.PRIVATE) public class LoginResponse { private String accessToken; private String freshToken; private String tokenType; + public static LoginResponse of(String accessToken, String freshToken, String tokenType) { + return LoginResponse.builder() + .accessToken(accessToken) + .freshToken(freshToken) + .tokenType(tokenType) + .build(); + } + }