Skip to content

Commit

Permalink
Merge pull request #283 from Modagbul/MNG-20
Browse files Browse the repository at this point in the history
MNG-20 feat: 모두의 인증 현황에 미션 인증 댓글 수 추가
  • Loading branch information
seungueonn authored May 13, 2024
2 parents b28cb4b + aac3e57 commit 6ab60be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ public class PersonalArchiveRes {

@Nullable
private String contents;

private Long comments;

}
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public static PersonalArchiveRes mapToPersonalArchive(MissionArchive missionArch
.count())
.makerId(missionArchive.getMember().getMemberId())
.contents(missionArchive.getContents())
.comments(missionArchive.getCommentNum())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
.hearts(3)
.makerId(1L)
.contents("contents")
.comments(1L)
.build());

given(missionArchiveReadUseCase.getPersonalArchive(any(),any())).willReturn(output);
Expand Down Expand Up @@ -365,10 +366,12 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
fieldWithPath("data[].heartStatus").description("미션 인증 좋아요 상태 "),
fieldWithPath("data[].hearts").description("미션 인증 좋아요 수 "),
fieldWithPath("data[].makerId").description("미션 인증한 사람 "),
fieldWithPath("data[].contents").description("미션 인증 문구")
fieldWithPath("data[].contents").description("미션 인증 문구"),
fieldWithPath("data[].comments").description("미션 인증 댓글 수")


)

)
)
)
.andReturn();
Expand Down

0 comments on commit 6ab60be

Please sign in to comment.