-
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 #396 from tukcomCD2024/ARCH-87-B-feat/group_list
feat : 그룹 목록, 상세 조회 추가 #360
- Loading branch information
Showing
27 changed files
with
703 additions
and
141 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
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
31 changes: 31 additions & 0 deletions
31
...core/src/main/java/site/timecapsulearchive/core/domain/group/data/dto/GroupDetailDto.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,31 @@ | ||
package site.timecapsulearchive.core.domain.group.data.dto; | ||
|
||
import java.time.ZonedDateTime; | ||
import java.util.List; | ||
import java.util.function.Function; | ||
import site.timecapsulearchive.core.domain.group.data.response.GroupDetailResponse; | ||
import site.timecapsulearchive.core.domain.group.data.response.GroupMemberResponse; | ||
import site.timecapsulearchive.core.domain.group.data.response.GroupMemberSummaryResponse; | ||
|
||
public record GroupDetailDto( | ||
String groupName, | ||
String groupDescription, | ||
String groupProfileUrl, | ||
ZonedDateTime createdAt, | ||
List<GroupMemberDto> members | ||
) { | ||
|
||
public GroupDetailResponse toResponse(Function<String, String> singlePreSignUrlFunction) { | ||
List<GroupMemberResponse> members = this.members.stream() | ||
.map(GroupMemberDto::toResponse) | ||
.toList(); | ||
|
||
return GroupDetailResponse.builder() | ||
.groupName(groupName) | ||
.groupDescription(groupDescription) | ||
.groupProfileUrl(singlePreSignUrlFunction.apply(groupProfileUrl)) | ||
.createdAt(createdAt) | ||
.members(members) | ||
.build(); | ||
} | ||
} |
Oops, something went wrong.