Skip to content

Commit

Permalink
feat: LoginResponse 에 정적팩토리 메서드 추가 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mybloom committed Jun 9, 2022
1 parent 4befeb7 commit 4772fb9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions BE/src/main/java/org/team4/airbnb/auth/dto/LoginResponse.java
Original file line number Diff line number Diff line change
@@ -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();
}

}

0 comments on commit 4772fb9

Please sign in to comment.