-
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 #537 from sopt-makers/develop
RELEASE 2024/11/06 21:48:00
- Loading branch information
Showing
11 changed files
with
81 additions
and
12 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
19 changes: 19 additions & 0 deletions
19
...main/java/org/sopt/makers/internal/member/controller/dto/response/MemberInfoResponse.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,19 @@ | ||
package org.sopt.makers.internal.member.controller.dto.response; | ||
|
||
public record MemberInfoResponse( | ||
|
||
Long id, | ||
|
||
String name, | ||
|
||
Integer generation, | ||
|
||
String profileImage, | ||
|
||
Boolean hasProfile, | ||
|
||
Boolean editActivitiesAble, | ||
|
||
Boolean hasCoffeeChat | ||
) { | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/org/sopt/makers/internal/member/mapper/MemberResponseMapper.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,24 @@ | ||
package org.sopt.makers.internal.member.mapper; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import org.sopt.makers.internal.domain.Member; | ||
import org.sopt.makers.internal.member.controller.dto.response.MemberInfoResponse; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@RequiredArgsConstructor | ||
public class MemberResponseMapper { | ||
|
||
public MemberInfoResponse toMemberInfoResponse(Member member, Boolean isCoffeeChatActive) { | ||
|
||
return new MemberInfoResponse( | ||
member.getId(), | ||
member.getName(), | ||
member.getGeneration(), | ||
member.getProfileImage(), | ||
member.getHasProfile(), | ||
member.getEditActivitiesAble(), | ||
isCoffeeChatActive | ||
); | ||
} | ||
} |
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