Skip to content

Commit

Permalink
fix: brand 타입 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongh00 committed Oct 8, 2024
1 parent 2935e10 commit 764e86b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.pocket.domain.dto.photobooth;

import com.pocket.domain.entity.photobooth.PhotoBoothBrand;

public record NearPhotoBoothInfo(
Long id,
String name
String name,
PhotoBoothBrand brand
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class PhotoBoothOutBoundMapper {
public NearPhotoBoothInfo toDTO(JpaPhotoBooth photoBooth) {
return new NearPhotoBoothInfo(
photoBooth.getId(),
photoBooth.getPhotoBooth().getName()
photoBooth.getPhotoBooth().getName(),
photoBooth.getPhotoBooth().getPhotoBoothBrand()
);
}
}

0 comments on commit 764e86b

Please sign in to comment.