File tree Expand file tree Collapse file tree
src/main/java/com/ururulab/ururu/groupBuy/dto/response Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .ururulab .ururu .groupBuy .dto .response ;
22
33import com .ururulab .ururu .product .domain .entity .Product ;
4+ import com .ururulab .ururu .product .dto .response .ProductNoticeResponse ;
45
56import 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}
You can’t perform that action at this time.
0 commit comments