diff --git a/photo-service/src/main/java/kr/mafoo/photo/controller/dto/response/AlbumDetailResponse.java b/photo-service/src/main/java/kr/mafoo/photo/controller/dto/response/AlbumDetailResponse.java index 73f9131..133131d 100644 --- a/photo-service/src/main/java/kr/mafoo/photo/controller/dto/response/AlbumDetailResponse.java +++ b/photo-service/src/main/java/kr/mafoo/photo/controller/dto/response/AlbumDetailResponse.java @@ -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, @@ -52,6 +55,7 @@ public static AlbumDetailResponse fromDto( dto.name(), dto.type(), dto.photoCount().toString(), + dto.sharedMemberId(), dto.shareStatus(), dto.permissionLevel(), dto.ownerMemberId(), diff --git a/photo-service/src/main/java/kr/mafoo/photo/service/dto/AlbumDto.java b/photo-service/src/main/java/kr/mafoo/photo/service/dto/AlbumDto.java index acc4d64..848a6bf 100644 --- a/photo-service/src/main/java/kr/mafoo/photo/service/dto/AlbumDto.java +++ b/photo-service/src/main/java/kr/mafoo/photo/service/dto/AlbumDto.java @@ -12,6 +12,7 @@ public record AlbumDto( String name, AlbumType type, Integer photoCount, + String sharedMemberId, ShareStatus shareStatus, PermissionLevel permissionLevel, String ownerMemberId, @@ -34,6 +35,7 @@ public static AlbumDto fromOwnedAlbum( null, null, null, + null, albumEntity.getCreatedAt() ); } @@ -48,6 +50,7 @@ public static AlbumDto fromSharedAlbum( albumEntity.getName(), albumEntity.getType(), albumEntity.getPhotoCount(), + sharedMemberEntity.getSharedMemberId(), sharedMemberEntity.getShareStatus(), sharedMemberEntity.getPermissionLevel(), memberDto.memberId(),