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(); }