From 708b803509fb26e3be9174cfcd329597dca6bfea Mon Sep 17 00:00:00 2001 From: Geunsik Kim <93639883+600gramSik@users.noreply.github.com> Date: Sun, 4 Aug 2024 08:31:06 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8Frefactor:=20=EB=82=B4=20?= =?UTF-8?q?=ED=8C=80=20=EB=AA=A9=EB=A1=9D=20=EC=A1=B0=ED=9A=8C=20=EC=8B=9C?= =?UTF-8?q?=20=ED=8C=80=20=EB=A9=A4=EB=B2=84,=20=EA=B7=B8=EB=A6=AC?= =?UTF-8?q?=EA=B3=A0=20=ED=95=B4=EB=8B=B9=20=ED=8C=80=EC=97=90=20=EB=A6=AC?= =?UTF-8?q?=EB=8D=94=20=ED=8F=AC=ED=95=A8=20=EB=AA=87=20=EB=AA=85=20?= =?UTF-8?q?=EC=9E=88=EB=8A=94=EC=A7=80=20=EC=A1=B0=ED=9A=8C=ED=95=A0=20?= =?UTF-8?q?=EC=88=98=20=EC=9E=88=EA=B2=8C=EB=81=94=20=EB=A6=AC=ED=8C=8D?= =?UTF-8?q?=ED=86=A0=EB=A7=81=20(#170)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/myteam/dto/response/GetTeamResponseDto.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/capstone/BnagFer/domain/myteam/dto/response/GetTeamResponseDto.java b/src/main/java/com/capstone/BnagFer/domain/myteam/dto/response/GetTeamResponseDto.java index 6591bd5c..2c7a3767 100644 --- a/src/main/java/com/capstone/BnagFer/domain/myteam/dto/response/GetTeamResponseDto.java +++ b/src/main/java/com/capstone/BnagFer/domain/myteam/dto/response/GetTeamResponseDto.java @@ -105,18 +105,20 @@ public record TeamList( Long tacticId, String mainFormation, String tacticName, + List teamMembers, + int memberCount, String teamName, - Long teamMemberId, String leaderNickName ) { - public static TeamList from(Team team, TeamMember teamMember) { + public static TeamList from(Team team) { return TeamList.builder() .teamId(team.getId()) .tacticId(team.getTactic().getTacticId()) .mainFormation(team.getTactic().getMainFormation()) .tacticName(team.getTactic().getTacticName()) .teamName(team.getTeamName()) - .teamMemberId(teamMember.getId()) + .teamMembers(TeamMembersList.from(team.getTeamMembers())) + .memberCount(team.getTeamMembers().size()) .leaderNickName(team.getLeader().getProfile().getNickname()) .build(); }