From a0f5967e7f9ad699eaaef2cbe9f6a2c1343f46b7 Mon Sep 17 00:00:00 2001 From: eojin0814 Date: Tue, 5 Dec 2023 13:12:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20apartment=20=EB=82=B4=EC=A7=91=EB=A7=88?= =?UTF-8?q?=EB=A0=A8=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/samsung/samsung/domain/product/dto/ProductDto.java | 2 ++ .../java/com/samsung/samsung/domain/product/entity/Product.java | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/java/com/samsung/samsung/domain/product/dto/ProductDto.java b/src/main/java/com/samsung/samsung/domain/product/dto/ProductDto.java index 60f6989..dd353bb 100644 --- a/src/main/java/com/samsung/samsung/domain/product/dto/ProductDto.java +++ b/src/main/java/com/samsung/samsung/domain/product/dto/ProductDto.java @@ -29,11 +29,13 @@ public Request(Product product) { @NoArgsConstructor @Data public static class Response{ + private String name; private String price; private String roi; public Response(Product product) { + this.name= product.getName(); this.price= product.getPrice(); this.roi= product.getRoi(); } diff --git a/src/main/java/com/samsung/samsung/domain/product/entity/Product.java b/src/main/java/com/samsung/samsung/domain/product/entity/Product.java index 7204158..dd02212 100644 --- a/src/main/java/com/samsung/samsung/domain/product/entity/Product.java +++ b/src/main/java/com/samsung/samsung/domain/product/entity/Product.java @@ -19,6 +19,7 @@ public class Product { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; + private String name; private String price; private String roi;