Skip to content

Commit

Permalink
feat : Auth API 응답 DTO swagger 추가 (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjKim1229 committed May 27, 2024
1 parent 09ca557 commit b7abaa1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@


import com.clubber.ClubberServer.domain.user.domain.User;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;

@Builder(access = AccessLevel.PRIVATE)
@Getter
public class KakaoOauthResponse {

@Schema(description = "유저 id", example = "1")
private final Long userId;

@Schema(description = "액세스 토큰")
private final String accessToken;

@Schema(description = "리프레시 토큰")
private final String refreshToken;

public static KakaoOauthResponse of(User user, String accessToken, String refreshToken){
Expand Down

0 comments on commit b7abaa1

Please sign in to comment.