Skip to content

Commit

Permalink
[REFACTOR] Dto 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
f1v3-dev committed Mar 22, 2024
1 parent b36436d commit 0364ba7
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package store.ckin.api.book.dto.response;

import java.util.ArrayList;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;

Expand All @@ -14,7 +14,6 @@

@Getter
@Builder
@AllArgsConstructor
public class BookExtractionResponseDto {

private Long bookId;
Expand All @@ -29,5 +28,15 @@ public class BookExtractionResponseDto {

private Integer bookStock;

private List<Long> categoryIds;
private final List<Long> categoryIds = new ArrayList<>();

public BookExtractionResponseDto(Long bookId, String bookImageUrl, String bookTitle, Boolean bookPackaging,
Integer bookSalePrice, Integer bookStock) {
this.bookId = bookId;
this.bookImageUrl = bookImageUrl;
this.bookTitle = bookTitle;
this.bookPackaging = bookPackaging;
this.bookSalePrice = bookSalePrice;
this.bookStock = bookStock;
}
}

0 comments on commit 0364ba7

Please sign in to comment.