-
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.
fix: 유저 정보 메인 DTO와 꿀조합으로 보이는 유저 정보 DTO 분리 (#63)
- Loading branch information
Showing
2 changed files
with
31 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.funeat.member.dto; | ||
|
||
import com.funeat.member.domain.Member; | ||
|
||
public class MemberResponse { | ||
|
||
private final String nickname; | ||
private final String profileImage; | ||
|
||
public MemberResponse(final String nickname, final String profileImage) { | ||
this.nickname = nickname; | ||
this.profileImage = profileImage; | ||
} | ||
|
||
public static MemberResponse toResponse(final Member member) { | ||
return new MemberResponse(member.getNickname(), member.getProfileImage()); | ||
} | ||
|
||
public String getNickname() { | ||
return nickname; | ||
} | ||
|
||
public String getProfileImage() { | ||
return profileImage; | ||
} | ||
} |