-
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 branch 'refs/heads/develop_back_core' into refact/common_dto-B-…
…#479 # Conflicts: # backend/core/src/main/java/site/timecapsulearchive/core/domain/capsule/group_capsule/api/GroupCapsuleApi.java # backend/core/src/main/java/site/timecapsulearchive/core/domain/capsule/group_capsule/service/GroupCapsuleService.java # backend/core/src/test/java/site/timecapsulearchive/core/common/fixture/domain/CapsuleFixture.java # backend/core/src/test/java/site/timecapsulearchive/core/domain/capsule/group_capsule/repository/GroupCapsuleQueryRepositoryTest.java # backend/core/src/test/java/site/timecapsulearchive/core/domain/capsule/group_capsule/service/GroupCapsuleServiceTest.java
- Loading branch information
Showing
20 changed files
with
359 additions
and
95 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
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(); | ||
} | ||
} |
11 changes: 10 additions & 1 deletion
11
...rchive/core/domain/capsule/group_capsule/data/response/GroupCapsuleOpenStateResponse.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 |
---|---|---|
@@ -1,10 +1,19 @@ | ||
package site.timecapsulearchive.core.domain.capsule.group_capsule.data.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import site.timecapsulearchive.core.domain.capsule.group_capsule.data.dto.CapsuleOpenStatus; | ||
|
||
@Schema(description = "그룹 캡슐 개봉 상태 응답") | ||
public record GroupCapsuleOpenStateResponse( | ||
|
||
@Schema(description = "캡슐 개봉 상태") | ||
CapsuleOpenStatus capsuleOpenStatus, | ||
String statusMessage | ||
|
||
@Schema(description = "캡슐 개봉 상태 메시지") | ||
String statusMessage, | ||
|
||
@Schema(description = "현재 요청한 사용자의 개별적인 캡슐 개봉 상태") | ||
boolean isIndividuallyOpened | ||
) { | ||
|
||
} |
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
Oops, something went wrong.