Skip to content

Commit

Permalink
fix: CoverDataResponse 응답 수정
Browse files Browse the repository at this point in the history
- 야매이지만,, 1~10은 프리셋 이미지, 11~20은 커버 이미지 이므로 커버 메타데이터 응답에 10을 더해 반환합니다..
  • Loading branch information
jang-namu committed Jul 18, 2024
1 parent 2a918dd commit bde378f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
@Getter
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class CoverDataResponse {
String id;
Long id;
String url;

private CoverDataResponse(String id, String url) {
private CoverDataResponse(Long id, String url) {
this.id = id;
this.url = url;
}

public static CoverDataResponse of(Cover cover) {
return new CoverDataResponse(cover.getId().toString(), cover.getCoverImageUrl());
return new CoverDataResponse(cover.getId() + 10, cover.getCoverImageUrl());
}
}

0 comments on commit bde378f

Please sign in to comment.