Skip to content

Commit

Permalink
feat: 포인트 랭킹 조회 응답으로 thumbnailPath 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
shkisme committed Oct 12, 2023
1 parent 4b99a15 commit dd4e940
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ public class MemberPointRankResponse {
private String realName;
private String generation;
private Integer point;
private String thumbnailPath;

public static MemberPointRankResponse from(Member member) {
return MemberPointRankResponse.builder()
.realName(member.getRealName())
.generation(member.getGeneration())
.point(member.getPoint())
.thumbnailPath(member.getThumbnailPath())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ FieldDescriptor[] getPointRankResponse() {
return new FieldDescriptor[]{
fieldWithPath("realName").description("회원의 실명"),
fieldWithPath("generation").description("회원의 기수"),
fieldWithPath("point").description("회원의 포인트")
fieldWithPath("point").description("회원의 포인트"),
fieldWithPath("thumbnailPath").description("회원의 썸네일 주소")
};
}

Expand Down

0 comments on commit dd4e940

Please sign in to comment.