Skip to content

Commit

Permalink
fix: add photoCount field for SharedAlbumResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkim20713 committed Nov 23, 2024
1 parent 256fc8f commit 1dd09b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public record SharedAlbumResponse(
@Schema(description = "앨범 종류", example = "HEART")
AlbumType type,

@Schema(description = "앨범 내 사진 수", example = "6")
String photoCount,

@Schema(description = "공유 앨범 소유자 ID", example = "test_member_id")
String ownerMemberId,

Expand All @@ -42,6 +45,7 @@ public static Mono<SharedAlbumResponse> fromDto(
dto.albumId(),
dto.name(),
dto.type(),
dto.photoCount().toString(),
dto.ownerMemberId(),
dto.ownerName(),
dto.ownerProfileImageUrl(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public record SharedAlbumDto(
String albumId,
String name,
AlbumType type,
Integer photoCount,
String ownerMemberId,
String ownerName,
String ownerProfileImageUrl,
Expand All @@ -23,6 +24,7 @@ public static SharedAlbumDto fromSharedAlbum(
albumEntity.getAlbumId(),
albumEntity.getName(),
albumEntity.getType(),
albumEntity.getPhotoCount(),
ownerMemberDto.memberId(),
ownerMemberDto.name(),
ownerMemberDto.profileImageUrl(),
Expand Down

0 comments on commit 1dd09b4

Please sign in to comment.