Skip to content

Commit

Permalink
feat: add status field
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang1221 committed Aug 15, 2024
1 parent 8b32105 commit 446a1be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package co.orange.ddanzi.dto.auth;

import co.orange.ddanzi.domain.user.enums.UserStatus;
import lombok.Builder;
import lombok.Getter;

Expand All @@ -9,4 +10,5 @@ public class SigninResponseDto {
private String accesstoken;
private String refreshtoken;
private String nickname;
private UserStatus status;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package co.orange.ddanzi.dto.auth;

import co.orange.ddanzi.domain.user.enums.UserStatus;
import lombok.Builder;
import lombok.Getter;

Expand All @@ -8,4 +9,5 @@
public class VerifyResponseDto {
private String nickname;
private String phone;
private UserStatus status;
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public ApiResponse<?> verify(VerifyRequestDto requestDto){
VerifyResponseDto responseDto = VerifyResponseDto.builder()
.nickname(user.getNickname())
.phone(newAuthentication.getPhone())
.status(user.getStatus())
.build();
return ApiResponse.onSuccess(Success.CREATE_AUTHENTICATION_SUCCESS, responseDto);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public ApiResponse<?> kakaoSignIn(String token) throws JsonProcessingException {
.accesstoken(jwtUtils.createAccessToken(email))
.refreshtoken(jwtUtils.createRefreshToken(email))
.nickname(user.get().getNickname())
.status(user.get().getStatus())
.build();
return ApiResponse.onSuccess(Success.SIGNIN_KAKAO_SUCCESS, responseDto);
}
Expand Down

0 comments on commit 446a1be

Please sign in to comment.