You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
사용자 정보 응답 DTO의 필드명을 표준화하는 리팩토링입니다. SearchUsersResponse와 UserInfoResponse 레코드에서 id를 userId로, name을 userName으로 변경하고, 이에 맞춰 테스트 코드의 단언문과 JSON 경로를 업데이트했습니다.
변경사항
응집 / 파일
변경 요약
DTO 필드명 통합 src/main/java/hanium/modic/backend/web/user/dto/response/SearchUsersResponse.java, src/main/java/hanium/modic/backend/web/user/dto/response/UserInfoResponse.java
레코드 컴포넌트명을 표준화: id → userId, name → userName (SearchUsersResponse에만 해당). 접근자 메서드 이름도 자동으로 변경됨.
테스트 코드 업데이트 src/test/java/hanium/modic/backend/domain/user/service/UserServiceTest.java, src/test/java/hanium/modic/backend/web/user/controller/UserControllerIntegrationTest.java, src/test/java/hanium/modic/backend/web/user/controller/UserControllerTest.java
단언문 및 JSON 경로를 업데이트: id() → userId(), $.data.id → $.data.userId로 변경하여 DTO 필드명 변경과 동기화.
예상 코드 리뷰 난이도
🎯 2 (심플) | ⏱️ ~10분
주의 깊게 확인할 사항:
레코드 컴포넌트 변경이 다른 곳에서도 사용되는지 확인 필요 (DTO 직렬화/역직렬화 로직)
JSON 매핑 도구(예: Jackson, Lombok)의 명시적 설정 여부 검토
테스트 커버리지가 모든 영향받는 API 엔드포인트를 다루고 있는지 확인
관련 가능성 있는 PR
유저 이름 검색 기능 구현 #206: 이 PR에서 도입된 SearchUsersResponse DTO를 이번 PR이 리팩토링하고 있으므로 직접 관련이 있습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
작업사항
Summary by CodeRabbit
릴리스 노트
id→userIdname→userName