Skip to content

Conversation

@Uralauah
Copy link
Contributor

@Uralauah Uralauah commented Apr 10, 2025

사용자 정보 조회 로직 작성

📝 개요

사용자 정보 조회 로직을 작성하였습니다.


⚙️ 구현 내용

사용자 정보를 권한에 따라 조회하고 dto로 반환하도록 하였습니다.


📎 기타

사용자 정보 조회에 캐싱 설정을 해서 좀 더 빠르게 할까 생각도 했지만
나중에 사용자 정보에 경험치 혹은 레벨이 들어가면 자주 변경이 일어날 수도 있을 것 같아서
일단은 캐싱을 적용하지 않았습니다.


🧪 테스트 결과

image

@Uralauah Uralauah requested review from brothergiven and jung-min-ju and removed request for brothergiven April 10, 2025 06:37

@Transactional(readOnly = true)
public UserInfoRes getUserInfo(Long userId, Role role){
User user = switch (role){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch문 깔끔하네요!! 맘에 들어요

@Uralauah Uralauah merged commit 38018af into develop Apr 11, 2025
1 check passed
@Uralauah Uralauah deleted the feat/user branch April 11, 2025 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants