Skip to content

Commit

Permalink
fix: add shared member id field for AlbumDetailResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkim20713 committed Nov 23, 2024
1 parent 1dd09b4 commit 0a6e13e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public record AlbumDetailResponse(
@Schema(description = "앨범 내 사진 수", example = "6")
String photoCount,

@Schema(description = "공유 사용자 ID", example = "test_shared_member_id")
String sharedMemberId,

@Schema(description = "공유 받은 앨범 상태", example = "null")
ShareStatus shareStatus,

Expand Down Expand Up @@ -52,6 +55,7 @@ public static AlbumDetailResponse fromDto(
dto.name(),
dto.type(),
dto.photoCount().toString(),
dto.sharedMemberId(),
dto.shareStatus(),
dto.permissionLevel(),
dto.ownerMemberId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public record AlbumDto(
String name,
AlbumType type,
Integer photoCount,
String sharedMemberId,
ShareStatus shareStatus,
PermissionLevel permissionLevel,
String ownerMemberId,
Expand All @@ -34,6 +35,7 @@ public static AlbumDto fromOwnedAlbum(
null,
null,
null,
null,
albumEntity.getCreatedAt()
);
}
Expand All @@ -48,6 +50,7 @@ public static AlbumDto fromSharedAlbum(
albumEntity.getName(),
albumEntity.getType(),
albumEntity.getPhotoCount(),
sharedMemberEntity.getSharedMemberId(),
sharedMemberEntity.getShareStatus(),
sharedMemberEntity.getPermissionLevel(),
memberDto.memberId(),
Expand Down

0 comments on commit 0a6e13e

Please sign in to comment.