책 목록을 클라이언트에 응답하기 위한 DTO 객체를 만듭니다.
src/main/java > com.yse.dev.book.dto > BookListResponseDTO.java
package com.yse.dev.book.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
public class BookListResponseDTO {
private Integer bookId;
private String title;
public BookListResponseDTO(Integer bookId, String title) {
this.bookId = bookId;
this.title = title;
}
}