-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat #92 전역 내정보 조회 #92
The head ref may contain hidden characters: "feat/#90/\uC804\uC5ED-\uB0B4\uC815\uBCF4-\uC870\uD68C"
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,6 +161,11 @@ public JwtDto refresh(String refreshToken) { | |
return new JwtDto(token.accessToken(), token.refreshToken()); | ||
} | ||
|
||
@Override | ||
public UserResponseDto.UserInfo findUserInfo(Long userId) { | ||
User user = userGetService.find(userId); | ||
return mapper.toUserInfoDto(user); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 여기도 엔터 하나만,,,. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 수정했어욤 |
||
private long getKakaoId(Login dto) { | ||
KakaoTokenResponse tokenResponse = kakaoAuthService.getKakaoToken(dto.authCode()); | ||
KakaoUserInfoResponse userInfo = kakaoAuthService.getUserInfo(tokenResponse.access_token()); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import jakarta.servlet.http.HttpServletRequest; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 사용하는 라이브러리 맞나요?? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 사용하지 않는 의존성이라 제거 했습니다 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 해당 내용은 현재 사용되지 않는 import 문인거같아, 불필요하다면 삭제 해주셔도 될거같습니다 ! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 넵 제거했습니닷 |
||
import jakarta.validation.Valid; | ||
import leets.weeth.domain.user.application.dto.response.UserResponseDto; | ||
import leets.weeth.domain.user.application.dto.response.UserResponseDto.SummaryResponse; | ||
|
@@ -94,6 +95,12 @@ public CommonResponse<Response> find(@Parameter(hidden = true) @CurrentUser Long | |
return CommonResponse.createSuccess(USER_FIND_BY_ID_SUCCESS.getMessage(), userUseCase.find(userId)); | ||
} | ||
|
||
@GetMapping("/info") | ||
@Operation(summary = "전역 내 정보 조회 API") | ||
public CommonResponse<UserResponseDto.UserInfo> findMyInfo(@Parameter(hidden = true) @CurrentUser Long userId) { | ||
return CommonResponse.createSuccess(USER_FIND_BY_ID_SUCCESS.getMessage(), userUseCase.findUserInfo(userId)); | ||
} | ||
|
||
@PatchMapping | ||
@Operation(summary = "내 정보 수정") | ||
public CommonResponse<Void> update(@RequestBody @Valid Update dto, @Parameter(hidden = true) @CurrentUser Long userId) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 엔터 하나만 있으면 좋을거같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니당