Skip to content

Commit

Permalink
feat: Add Kakao user first login status (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahyun0326 committed Mar 21, 2024
1 parent 2bd3ebe commit 441731e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/beotkkot/qtudy/domain/user/Users.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ public class Users {
private String name;

private String profileImageUrl;

private boolean first;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class GetAuthResponseDto extends ResponseDto {
private String accessToken;
private String name;
private String profileImageUrl;
private boolean first;

@Builder
private GetAuthResponseDto(Users user, String accessToken) {
Expand All @@ -27,6 +28,7 @@ private GetAuthResponseDto(Users user, String accessToken) {
this.accessToken = accessToken;
this.name = user.getName();
this.profileImageUrl = user.getProfileImageUrl();
this.first = user.isFirst();
}

public static ResponseEntity<GetAuthResponseDto> success(Users user, String accessToken) {
Expand Down

0 comments on commit 441731e

Please sign in to comment.