-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 리뷰 피드백 및 테스트 코드 추가 구현 (#194)
* feat: 리뷰 작성을 위한 모임 참여자 조회 응답 DTO 변경 (#163) * refactor: AlertHandler 기존 코드로 변경 (#163) * refactor: MeetingController 모임 참여자 조회 응답 DTO 변경 (#163) * refactor: MeetingController 모임 참여자 조회 응답 DTO 변경 (#163) * Revert "refactor: MeetingController 모임 참여자 조회 응답 DTO 변경 (#163)" This reverts commit 3dc30b3. * refactor: MeetingController 모임 참여자 조회 응답 DTO 변경 (#163) * Revert "refactor: MeetingController 모임 참여자 조회 응답 DTO 변경 (#163)" This reverts commit 2b3c47c. * refactor: MeetingService 모임 참여자 조회 응답 DTO 변경 (#163) * refactor: UserService Assert.isTrue 사용으로 변경 (#163) * test: UserControllerTest 컨트롤러 단위 테스트 고도화 (#163) * test: UserServiceTest 서비스 단위 테스트 고도화 (#163) * test: MeetingIntegrationTest 모임 참여자 조회 관련 추가 구현 (#163)
- Loading branch information
1 parent
016c3c5
commit f3699f1
Showing
9 changed files
with
126 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
30 changes: 30 additions & 0 deletions
30
src/main/java/net/teumteum/meeting/domain/response/MeetingParticipantsForReviewResponse.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package net.teumteum.meeting.domain.response; | ||
|
||
import java.util.List; | ||
import net.teumteum.user.domain.User; | ||
|
||
public record MeetingParticipantsForReviewResponse( | ||
List<MeetingParticipantForReviewResponse> participants | ||
) { | ||
|
||
public static MeetingParticipantsForReviewResponse of(List<User> users) { | ||
return new MeetingParticipantsForReviewResponse( | ||
users.stream() | ||
.map(user -> new MeetingParticipantForReviewResponse( | ||
user.getId(), | ||
user.getCharacterId(), | ||
user.getName(), | ||
user.getJob().getDetailJobClass())) | ||
.toList() | ||
); | ||
} | ||
|
||
public record MeetingParticipantForReviewResponse( | ||
Long id, | ||
Long characterId, | ||
String name, | ||
String job | ||
) { | ||
|
||
} | ||
} |
23 changes: 0 additions & 23 deletions
23
src/main/java/net/teumteum/meeting/domain/response/MeetingParticipantsResponse.java
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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