Skip to content

Commit

Permalink
Merge pull request #70 from 9oormthonUniv-seoultech/feat/#68
Browse files Browse the repository at this point in the history
Feat/#68 해시태그 검색 시, 앨범 id 추가
  • Loading branch information
JiinHong authored Nov 7, 2024
2 parents a70b108 + 3488d5d commit 9c4cb20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;

public record AlbumHashtagResponseDto(
Long albumId,
String photoUrl,
List<String> hashtags,
Integer year,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public List<AlbumHashtagResponseDto> getAlbumByHashtag(String hashtag, String us
return albumHashtagResponseDtos.stream()
.map(dto -> {
String presignedUrl = dto.photoUrl().isEmpty() ? "" : fileDownloadPort.getDownloadPresignedUrl(dto.photoUrl());
return new AlbumHashtagResponseDto(presignedUrl, dto.hashtags(), dto.year(), dto.month(), dto.date(), dto.memo(), dto.isLiked());
return new AlbumHashtagResponseDto(dto.albumId(), presignedUrl, dto.hashtags(), dto.year(), dto.month(), dto.date(), dto.memo(), dto.isLiked());
})
.collect(Collectors.toList());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public List<AlbumHashtagResponseDto> getAlbumByHashtag(String hashtag, String us

// AlbumHashtagResponseDto 구성
return new AlbumHashtagResponseDto(
album.getId(),
album.getImage().getImageUrl(),
hashtags,
album.getImage().getYear(),
Expand Down

0 comments on commit 9c4cb20

Please sign in to comment.