diff --git a/src/main/java/org/ntlab/citrusserver/entities/Book.java b/src/main/java/org/ntlab/citrusserver/entities/Book.java index c68c40e..08a7d4b 100644 --- a/src/main/java/org/ntlab/citrusserver/entities/Book.java +++ b/src/main/java/org/ntlab/citrusserver/entities/Book.java @@ -8,6 +8,7 @@ private String color; private String accountId; private String time; + private int favoriteCount; public Book(String accountId, Integer bookId, String title, boolean publicity, String color, String time) { @@ -19,6 +20,7 @@ this.color = color; this.time = time; + this.favoriteCount = 0; } @@ -34,4 +36,6 @@ public String getAccountId() {return accountId;} public void setTime(String t) {time = t;} public String getTime() {return time;} + public void setFavoritedCount(int f) {favoriteCount = f;} + public int getFavoritedCount() {return favoriteCount;} }