-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #485 from tukcomCD2024/feat/group_member_capsule_o…
…pen_status-B-#484 feat : 그룹 캡슐 개봉 상태 조회 API 추가 #484
- Loading branch information
Showing
19 changed files
with
364 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...learchive/core/domain/capsule/group_capsule/data/dto/GroupMemberCapsuleOpenStatusDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package site.timecapsulearchive.core.domain.capsule.group_capsule.data.dto; | ||
|
||
import site.timecapsulearchive.core.domain.capsule.group_capsule.data.response.GroupMemberCapsuleOpenStatusResponse; | ||
|
||
public record GroupMemberCapsuleOpenStatusDto( | ||
Long memberId, | ||
String nickname, | ||
String profileUrl, | ||
boolean isOpened | ||
) { | ||
|
||
public GroupMemberCapsuleOpenStatusResponse toResponse() { | ||
return GroupMemberCapsuleOpenStatusResponse.builder() | ||
.memberId(memberId) | ||
.nickname(nickname) | ||
.profileUrl(profileUrl) | ||
.isOpened(isOpened) | ||
.build(); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
.../domain/capsule/group_capsule/data/response/GroupMemberCapsuleOpenStatusListResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package site.timecapsulearchive.core.domain.capsule.group_capsule.data.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.List; | ||
import site.timecapsulearchive.core.domain.capsule.group_capsule.data.dto.GroupMemberCapsuleOpenStatusDto; | ||
|
||
@Schema(description = "그룹원들 캡슐 개봉 상태") | ||
public record GroupMemberCapsuleOpenStatusListResponse( | ||
List<GroupMemberCapsuleOpenStatusResponse> groupMemberCapsuleOpenStatus | ||
) { | ||
|
||
public static GroupMemberCapsuleOpenStatusListResponse create( | ||
List<GroupMemberCapsuleOpenStatusDto> groupMemberCapsuleOpenStatus) { | ||
List<GroupMemberCapsuleOpenStatusResponse> groupMemberCapsuleOpenStatusResponses = groupMemberCapsuleOpenStatus.stream() | ||
.map(GroupMemberCapsuleOpenStatusDto::toResponse) | ||
.toList(); | ||
|
||
return new GroupMemberCapsuleOpenStatusListResponse(groupMemberCapsuleOpenStatusResponses); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...core/domain/capsule/group_capsule/data/response/GroupMemberCapsuleOpenStatusResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package site.timecapsulearchive.core.domain.capsule.group_capsule.data.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
|
||
@Schema(description = "그룹원별 캡슐 개봉 상태") | ||
@Builder | ||
public record GroupMemberCapsuleOpenStatusResponse( | ||
|
||
@Schema(description = "회원 아이디") | ||
Long memberId, | ||
|
||
@Schema(description = "회원 닉네임") | ||
String nickname, | ||
|
||
@Schema(description = "회원 프로필") | ||
String profileUrl, | ||
|
||
@Schema(description = "개봉 상태") | ||
boolean isOpened | ||
) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.