Skip to content

Commit

Permalink
hotfix: add orderDateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunihs committed Sep 14, 2024
1 parent ba979aa commit cce6726
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
import com.example.repick.domain.product.entity.ProductOrder;
import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDateTime;

public record GetProductOrderForUser(
@Schema(description = "์ฃผ๋ฌธ ์•„์ด๋””") long productOrderId,
@Schema(description = "์ƒํ’ˆ ์ฃผ๋ฌธ ์•„์ด๋””") long productOrderId,
@Schema(description = "์ฃผ๋ฌธ ์ผ์‹œ") LocalDateTime orderDateTime,
@Schema(description = "์ฃผ๋ฌธ ์ƒํƒœ") String orderState,
@Schema(description = "๋ธŒ๋žœ๋“œ ์ด๋ฆ„") String brandName,
@Schema(description = "์ƒํ’ˆ ์ด๋ฆ„") String productName,
Expand All @@ -16,6 +19,7 @@ public record GetProductOrderForUser(
public static GetProductOrderForUser from(ProductOrder productOrder, Product product) {
return new GetProductOrderForUser(
productOrder.getId(),
productOrder.getCreatedDate(),
productOrder.getProductOrderState().getValue(),
product.getBrandName(),
product.getProductName(),
Expand Down

0 comments on commit cce6726

Please sign in to comment.