Skip to content

Commit

Permalink
WriteBoardRequest toBoardDTO 함수 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
5upportPark committed Oct 4, 2024
1 parent e376897 commit 32ebbf9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/java/com/pjw/retry_view/request/WriteBoardRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ public class WriteBoardRequest implements Serializable {
private List<String> images;
private Long createdBy;

public BoardDTO toBoardDTO(){
return BoardDTO.builder()
.type(type)
.productId(productId)
.content(content)
.viewCount(0L)
.price(price)
.images(imagesToDTO())
.createdBy(createdBy)
.build();
}

private List<BoardImageDTO> imagesToDTO(){
if(images == null) return null;
return images.stream().map(BoardImageDTO::getImageDTO).toList();
Expand Down

0 comments on commit 32ebbf9

Please sign in to comment.