Skip to content

Commit

Permalink
Merge pull request #192 from kakao-tech-campus-2nd-step3/feat/#142-my…
Browse files Browse the repository at this point in the history
…page

[Refactor] 마이페이지 인플루언서 반환 값 수정했어요
BaeJunH0 authored Nov 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 29d00e1 + f88b308 commit 9257675
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -3,20 +3,20 @@
import team7.inplace.influencer.application.dto.InfluencerInfo;

public record LikedInfluencerResponse(
Long influencerId,
String InfluencerName,
String InfluencerImgUrl,
String influencerJob,
boolean likes
Long influencerId,
String influencerName,
String influencerImgUrl,
String influencerJob,
boolean likes
) {

public static LikedInfluencerResponse from(InfluencerInfo influencerInfo) {
return new LikedInfluencerResponse(
influencerInfo.influencerId(),
influencerInfo.influencerName(),
influencerInfo.influencerImgUrl(),
influencerInfo.influencerJob(),
influencerInfo.likes()
influencerInfo.influencerId(),
influencerInfo.influencerName(),
influencerInfo.influencerImgUrl(),
influencerInfo.influencerJob(),
influencerInfo.likes()
);
}
}

0 comments on commit 9257675

Please sign in to comment.