From 867dbcfdf011798c1245fc16e217b97e4444d974 Mon Sep 17 00:00:00 2001 From: mummhy0811 Date: Wed, 5 Jun 2024 17:46:27 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=82=B4=20=EB=AA=A8=EC=9E=84=20?= =?UTF-8?q?=EB=A6=AC=EC=8A=A4=ED=8A=B8=EC=97=90=20=EC=84=A0=ED=98=B8?= =?UTF-8?q?=EC=97=AC=ED=96=89=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../triptogether/account/dto/response/TeamServiceListResDto.java | 1 + .../triptogether/account/service/impl/AccountServiceImpl.java | 1 + 2 files changed, 2 insertions(+) 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); }