Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Cheese4cutResponse getCheese4cutByAlbumCode(Authentication authentication
List<Cheese4cutFinalResponse.FinalPhotoInfo> photos = cheese4cut.getPhotos().stream()
.map(p -> Cheese4cutMapper.toFinalPhotoInfo(
p.getPhotoId(),
cdnUrlResolver.resolveOriginal(p.getImageUrl()),
cdnUrlResolver.resolveThumbnail(p.getThumbnailImageUrl()),
p.getPhotoRank()
))
.toList();
Expand Down Expand Up @@ -110,7 +110,7 @@ private Cheese4cutResponse getPreviewResponse(Long albumId, int participant, Rol
.mapToObj(index -> {
Photo p = orderedPhotos.get(index);
return Cheese4cutMapper.toPreviewPhotoInfo(
p.getId(), cdnUrlResolver.resolveOriginal(p.getImageUrl()), index+1
p.getId(), cdnUrlResolver.resolveThumbnail(p.getThumbnailUrl()), index+1
);
})
.toList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public record Cheese4cutFinalResponse(
}
)
public record FinalPhotoInfo(
@Schema(description = "원본 사진 ID", example = "101")
@Schema(description = "사진 ID", example = "101")
Long photoId,

@Schema(description = "사진 원본 URL", example = "https://cdn.cheeeese.com/album/1/original/101.jpg")
@Schema(description = "사진 썸네일 URL", example = "https://cdn.cheeeese.com/album/1/original/101.jpg")
String imageUrl,

@Schema(description = "선정 순위 (1~4)", example = "1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public record PreviewPhotoInfo(
@Schema(description = "사진 ID", example = "101")
Long photoId,

@Schema(description = "사진 원본 URL", example = "https://cdn.cheeeese.com/album/1/original/101.jpg")
@Schema(description = "사진 썸네일 URL", example = "https://cdn.cheeeese.com/album/1/original/101.jpg")
String imageUrl,

@Schema(description = "선정 순위 (1~4)", example = "1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public interface Cheese4cutSwagger {
---
이 API는 앨범의 **치즈네컷 확정 상태**에 따라 응답 형태가 달라지는 다형적(Polymorphic) 응답을 반환합니다.

1. **확정 전 (isFinalized: false)**: 좋아요 TOP 4 사진의 원본 URL, 유니크 좋아요 수, 전체 참여자 수를 제공합니다.
2. **확정 후 (isFinalized: true)**: 확정된 좋아요 TOP 4 사진의 원본 URL
1. **확정 전 (isFinalized: false)**: 좋아요 TOP 4 사진의 썸네일 URL, 유니크 좋아요 수, 전체 참여자 수를 제공합니다.
2. **확정 후 (isFinalized: true)**: 확정된 좋아요 TOP 4 사진의 썸네일 URL
"""
)
@ApiResponses(value = {
Expand Down