-
Notifications
You must be signed in to change notification settings - Fork 0
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 #28 from CodingWasabi/feature-10/groupMember
🔥[FEAT]-#10- party 에 참여한 회원 조회
- Loading branch information
Showing
7 changed files
with
78 additions
and
1 deletion.
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/codingwasabi/trti/domain/party/model/response/ResponseMemberDto.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,21 @@ | ||
package com.codingwasabi.trti.domain.party.model.response; | ||
|
||
import com.codingwasabi.trti.domain.memberInParty.model.MemberInParty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
public class ResponseMemberDto { | ||
private String nickname; | ||
private String imageUrl; | ||
|
||
public static ResponseMemberDto from(MemberInParty memberInParty) { | ||
return ResponseMemberDto.builder() | ||
.nickname(memberInParty.getMember().getNickname()) | ||
.imageUrl(memberInParty.getMember().getImagePath()) | ||
.build(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...in/java/com/codingwasabi/trti/domain/party/model/response/ResponsePartyMemberListDto.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,18 @@ | ||
package com.codingwasabi.trti.domain.party.model.response; | ||
|
||
import com.codingwasabi.trti.domain.memberInParty.model.MemberInParty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class ResponsePartyMemberListDto { | ||
private Integer membersCount; | ||
private List<ResponseMemberDto> members; | ||
|
||
public static ResponsePartyMemberListDto of(int membersCount, List<ResponseMemberDto> members) { | ||
return new ResponsePartyMemberListDto(membersCount, members); | ||
} | ||
} |