Skip to content

Commit

Permalink
다시 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eeddiinn committed Mar 28, 2024
1 parent d4d8335 commit a8a05e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions Lecue-Server
Submodule Lecue-Server added at 32480c
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,18 @@ public void addFavorite(Favorite favorite) {
private int popularRate = 0;

@Builder
public Book(String uuid, String favoriteName, String favoriteImage, String title, String description, String backgroundColor, Member member) {
public Book(String uuid, String favoriteName, String favoriteImage, String title, String description, String backgroundColor, Member member, int popularRate) {
this.uuid = uuid;
this.favoriteName = favoriteName;
this.favoriteImage = favoriteImage;
this.title = title;
this.description = description;
this.backgroundColor = backgroundColor;
this.member = member;
this.popularRate = popularRate;
}

public static Book of(String uuid, String favoriteName, String favoriteImage, String title, String description, String backgroundColor, Member member) {
return new Book(uuid, favoriteName, favoriteImage, title, description, backgroundColor, member);
public static Book of(String uuid, String favoriteName, String favoriteImage, String title, String description, String backgroundColor, Member member, int popularRate) {
return new Book(uuid, favoriteName, favoriteImage, title, description, backgroundColor, member, popularRate);
}
}
Loading

0 comments on commit a8a05e6

Please sign in to comment.