diff --git a/src/main/java/donggukthon/volunmate/dto/myPage/response/UserTeamDto.java b/src/main/java/donggukthon/volunmate/dto/myPage/response/UserTeamDto.java index 6d1c8a8..ce70e59 100644 --- a/src/main/java/donggukthon/volunmate/dto/myPage/response/UserTeamDto.java +++ b/src/main/java/donggukthon/volunmate/dto/myPage/response/UserTeamDto.java @@ -13,15 +13,19 @@ public record UserTeamDto( @JsonProperty("writer") String writer, + @JsonProperty("degree") + Float degree, + @JsonProperty("content") String content ) implements Serializable { public static UserTeamDto of( - Long teamId, String writer, String content + Long teamId, String writer, Float degree, String content ) { return UserTeamDto.builder() .teamId(teamId) .writer(writer) + .degree(degree) .content(content) .build(); } diff --git a/src/main/java/donggukthon/volunmate/service/MyPageService.java b/src/main/java/donggukthon/volunmate/service/MyPageService.java index 6bc4ad7..c5c3450 100644 --- a/src/main/java/donggukthon/volunmate/service/MyPageService.java +++ b/src/main/java/donggukthon/volunmate/service/MyPageService.java @@ -47,7 +47,7 @@ public List getUserTeamList(String socialId) { String title = volunteer.getTitle(); List userTeamDto = volunteer.getVolunmates().stream() .map(volunmate -> UserTeamDto.of( - volunmate.getId(), volunmate.getUser().getUserName(), volunmate.getContent() + volunmate.getId(), volunmate.getUser().getUserName(), volunmate.getUser().getDegree(), volunmate.getContent() )).toList(); return UserTeamListDto.of(title, userTeamDto); }).toList();