Skip to content

Commit 101e88f

Browse files
authored
Merge pull request #206 from UruruLab/bug/204-groupbuyProductNoticeMissing
공동구매 상세 조회 상품정보고시 데이터 누락
2 parents 9fc550a + c4a8de3 commit 101e88f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/com/ururulab/ururu/groupBuy/dto/response/ProductInfoResponse.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.ururulab.ururu.groupBuy.dto.response;
22

33
import com.ururulab.ururu.product.domain.entity.Product;
4+
import com.ururulab.ururu.product.dto.response.ProductNoticeResponse;
45

56
import java.util.List;
67

@@ -9,7 +10,8 @@ public record ProductInfoResponse(
910
String name,
1011
String description,
1112
List<String> categoryIds,
12-
List<String> tags
13+
List<String> tags,
14+
ProductNoticeResponse productNotice
1315
) {
1416
public static ProductInfoResponse from(Product product) {
1517
List<String> categoryIds = product.getProductCategories().stream()
@@ -29,7 +31,8 @@ public static ProductInfoResponse from(Product product) {
2931
product.getName(),
3032
product.getDescription(),
3133
categoryIds,
32-
tags
34+
tags,
35+
ProductNoticeResponse.from(product.getProductNotice())
3336
);
3437
}
3538
}

0 commit comments

Comments
 (0)