Skip to content

Commit

Permalink
Merge pull request #32 from NOW-SOPT-APP4-KREAM/feat/#31
Browse files Browse the repository at this point in the history
[fix] #31 - Response에 isFast, styleCount값 추가
  • Loading branch information
rlarlgnszx authored May 20, 2024
2 parents 3a2613e + ffe380c commit 875caca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ public record RelateRecommendProductResponse(
String thumbnailUrl,
String engTitle,
String price,
Boolean isFast,
String scrapCount
boolean isFast,
String scrapCount,
String styleCount

) {
public static RelateRecommendProductResponse of(
Expand All @@ -21,7 +22,8 @@ public static RelateRecommendProductResponse of(
product.getBrandTitle(),
product.getEngTitle(),
product.isFast(),
product.getScrapCount()
product.getScrapCount(),
product.getStyleCount()
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ public record SearchFindProductResponse(
String title,
String price,
String transactionCount,
String scrapCount
String scrapCount,
String styleCount,
boolean isFast
) {
public static SearchFindProductResponse of(
final Product product
Expand All @@ -24,7 +26,9 @@ public static SearchFindProductResponse of(
product.getTitle(),
product.getPrice(),
product.getTransactionCount(),
product.getScrapCount()
product.getScrapCount(),
product.getStyleCount(),
product.isFast()
);
}

Expand Down

0 comments on commit 875caca

Please sign in to comment.