Skip to content

Commit

Permalink
[MERGE] Merge pull request #117 from Team-WSS/fix/#116
Browse files Browse the repository at this point in the history
[FIX] 소소's Pick API 반환값 수정
  • Loading branch information
ChaeAg authored Jan 18, 2024
2 parents 88f9f90 + 6a772da commit d315352
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
import com.wss.websoso.novel.Novel;

public record SosoPickGetResponse(
Long novelId,
String novelImg,
String novelTitle,
String novelAuthor,
Long novelRegisteredCount
) {
public static SosoPickGetResponse of(Novel novel, Long novelRegisteredCount) {
return new SosoPickGetResponse(novel.getNovelImg(), novel.getNovelTitle(), novel.getNovelAuthor(),
return new SosoPickGetResponse(novel.getNovelId(), novel.getNovelImg(), novel.getNovelTitle(), novel.getNovelAuthor(),
novelRegisteredCount);
}
}

0 comments on commit d315352

Please sign in to comment.