Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/com/ikdaman/domain/mybook/model/MyBookReq.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,21 @@ public class MyBookReq {
private String isbn;
private int page;
private String coverImage;
private int itemId; // 알라딘 itemId
@Size(max = 500)
private String impression;
private String createdAt;

@Builder
public MyBookReq(String title, String writer, String publisher, String isbn,
int page, String coverImage, String impression, String createdAt) {
int page, String coverImage, int itemId, String impression, String createdAt) {
this.title = title;
this.writer = writer;
this.publisher = publisher;
this.isbn = isbn;
this.page = page;
this.coverImage = coverImage;
this.itemId = itemId;
this.impression = impression;
this.createdAt = createdAt;
}
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/ikdaman/domain/mybook/model/MyBookRes.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ public class MyBookRes {
private int mybookId;
private String title;
private String writer;
private int itemId;
private int progressRate;
private String impression;
private String createdAt;

@Builder
public MyBookRes(int mybookId, String title, String writer, int progressRate, String impression, String createdAt) {
public MyBookRes(int mybookId, String title, String writer, int itemId,
int progressRate, String impression, String createdAt) {
this.mybookId = mybookId;
this.title = title;
this.writer = writer;
this.itemId = itemId;
this.progressRate = progressRate;
this.impression = impression;
this.createdAt = createdAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public MyBookRes addMyBook(MyBookReq dto) {
return MyBookRes.builder()
.title(dto.getTitle())
.writer(dto.getWriter())
.itemId(dto.getItemId())
.progressRate(0)
.impression(dto.getImpression())
.createdAt(dto.getCreatedAt())
Expand Down