diff --git a/src/main/java/com/hanaro/triptogether/account/dto/response/TeamServiceListResDto.java b/src/main/java/com/hanaro/triptogether/account/dto/response/TeamServiceListResDto.java index 3fd4a00..fcafcf8 100644 --- a/src/main/java/com/hanaro/triptogether/account/dto/response/TeamServiceListResDto.java +++ b/src/main/java/com/hanaro/triptogether/account/dto/response/TeamServiceListResDto.java @@ -15,4 +15,5 @@ public class TeamServiceListResDto { private Long teamIdx; private Long teamMemberIdx; private String teamMemberState; + private Long preferTripIdx; } diff --git a/src/main/java/com/hanaro/triptogether/account/service/impl/AccountServiceImpl.java b/src/main/java/com/hanaro/triptogether/account/service/impl/AccountServiceImpl.java index 3dc0222..77746f8 100644 --- a/src/main/java/com/hanaro/triptogether/account/service/impl/AccountServiceImpl.java +++ b/src/main/java/com/hanaro/triptogether/account/service/impl/AccountServiceImpl.java @@ -53,6 +53,7 @@ public List teamServiceList(Long memberIdx) { .teamIdx(team.getTeamIdx()) .teamMemberIdx(teamMemberIdx) .teamMemberState(teamMember.get().getTeamMemberState().name()) + .preferTripIdx(team.getPreferTrip()==null? null: team.getPreferTrip().getTripIdx()) .build(); teamServiceListResDtos.add(teamServiceListResDto); }