diff --git a/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/data/dto/GroupSendingInviteMemberDto.java b/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/data/dto/GroupSendingInviteMemberDto.java index 2fcb0f82b..4b69a3178 100644 --- a/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/data/dto/GroupSendingInviteMemberDto.java +++ b/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/data/dto/GroupSendingInviteMemberDto.java @@ -5,7 +5,8 @@ import site.timecapsulearchive.core.domain.member_group.data.response.GroupSendingInviteMemberResponse; public record GroupSendingInviteMemberDto( - Long id, + Long groupInviteId, + Long memberId, String nickname, String profileUrl, ZonedDateTime sendingInvitesCreatedAt @@ -13,7 +14,8 @@ public record GroupSendingInviteMemberDto( public GroupSendingInviteMemberResponse toResponse() { return GroupSendingInviteMemberResponse.builder() - .id(id) + .groupInviteId(groupInviteId) + .memberId(memberId) .nickname(nickname) .profileUrl(profileUrl) .sendingInvitesCreatedAt(sendingInvitesCreatedAt) diff --git a/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/data/response/GroupSendingInviteMemberResponse.java b/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/data/response/GroupSendingInviteMemberResponse.java index b4193f30f..cee057b8a 100644 --- a/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/data/response/GroupSendingInviteMemberResponse.java +++ b/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/data/response/GroupSendingInviteMemberResponse.java @@ -6,7 +6,8 @@ @Builder public record GroupSendingInviteMemberResponse( - Long id, + Long groupInviteId, + Long memberId, String nickname, String profileUrl, ZonedDateTime sendingInvitesCreatedAt diff --git a/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/repository/group_invite_repository/GroupInviteQueryRepositoryImpl.java b/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/repository/group_invite_repository/GroupInviteQueryRepositoryImpl.java index 831b4e8e3..b3ffe71ce 100644 --- a/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/repository/group_invite_repository/GroupInviteQueryRepositoryImpl.java +++ b/backend/core/src/main/java/site/timecapsulearchive/core/domain/member_group/repository/group_invite_repository/GroupInviteQueryRepositoryImpl.java @@ -108,6 +108,7 @@ public Slice findGroupSendingInvites( .select( Projections.constructor( GroupSendingInviteMemberDto.class, + groupInvite.id, member.id, member.nickname, member.profileUrl, diff --git a/backend/core/src/test/java/site/timecapsulearchive/core/domain/member_group/repository/GroupInviteQueryRepositoryTest.java b/backend/core/src/test/java/site/timecapsulearchive/core/domain/member_group/repository/GroupInviteQueryRepositoryTest.java index 03c45d9fc..d9d51aeae 100644 --- a/backend/core/src/test/java/site/timecapsulearchive/core/domain/member_group/repository/GroupInviteQueryRepositoryTest.java +++ b/backend/core/src/test/java/site/timecapsulearchive/core/domain/member_group/repository/GroupInviteQueryRepositoryTest.java @@ -145,7 +145,8 @@ void setUp(@Autowired EntityManager entityManager) { //then SoftAssertions.assertSoftly(softly -> { softly.assertThat(groupSendingInvites.hasContent()).isTrue(); - softly.assertThat(groupSendingInvites.getContent()).allMatch(dto -> dto.id() != null); + softly.assertThat(groupSendingInvites.getContent()).allMatch(dto -> dto.groupInviteId() != null); + softly.assertThat(groupSendingInvites.getContent()).allMatch(dto -> dto.memberId() != null); softly.assertThat(groupSendingInvites.getContent()) .allMatch(dto -> dto.nickname() != null && !dto.nickname().isBlank()); softly.assertThat(groupSendingInvites.getContent())