Skip to content

Commit

Permalink
Merge pull request #80 from Uni-Made/feature/#79
Browse files Browse the repository at this point in the history
πŸ› [BUG] μƒν’ˆ μ •λ³΄μ—μ„œ category ν…Œμ΄λΈ” 전체가 λ°˜ν™˜λ˜λŠ” 문제 #79
  • Loading branch information
moonyaeyoon authored Jul 26, 2024
2 parents 7c3a35f + 6b29f01 commit f0e07d2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public class ProductResponse {
private String sellerName;
private String university;
private String productName;
private Category category;
private Long categoryId;
private String categoryName;
private LocalDate deadline;
private Long price;
private List<String> productImages;
Expand All @@ -41,7 +42,8 @@ public static ProductResponse from(Products product) {
.sellerName(product.getSeller().getName())
.university(product.getUniversity())
.productName(product.getName())
.category(product.getCategory())
.categoryId(product.getCategory().getId())
.categoryName(product.getCategory().getName())
.deadline(product.getDeadline())
.price(product.getPrice())
.productImages(product.getProductImages().stream().map(ProductsImage::getImageUrl).collect(Collectors.toList()))
Expand Down

0 comments on commit f0e07d2

Please sign in to comment.