From c29873d55a5e9fb57f6fbb8e91e566dbf76513aa Mon Sep 17 00:00:00 2001 From: YuJungHyun <0703olivia@naver.com> Date: Sun, 27 Nov 2022 14:17:14 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20#46=20=EB=82=B4=20=EC=8B=9D=EB=AC=BC=20?= =?UTF-8?q?=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EC=9E=85=EC=96=91=20=EB=82=A0?= =?UTF-8?q?=EC=A7=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/plantity/server/controller/MyPlantApiController.java | 1 + .../com/plantity/server/domain/myPlant/MyPlantResponseDto.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/server/src/main/java/com/plantity/server/controller/MyPlantApiController.java b/server/src/main/java/com/plantity/server/controller/MyPlantApiController.java index be54d4f..3d0a773 100644 --- a/server/src/main/java/com/plantity/server/controller/MyPlantApiController.java +++ b/server/src/main/java/com/plantity/server/controller/MyPlantApiController.java @@ -59,6 +59,7 @@ public class MyPlantApiController { @Value("${cloud.aws.s3.bucket}") public String bucket; + // 내 식물 등록하기 @PostMapping("/save/{userId}") public BaseResponse2 save( @RequestParam String cntntsNo, diff --git a/server/src/main/java/com/plantity/server/domain/myPlant/MyPlantResponseDto.java b/server/src/main/java/com/plantity/server/domain/myPlant/MyPlantResponseDto.java index f09f8c8..f98ac06 100644 --- a/server/src/main/java/com/plantity/server/domain/myPlant/MyPlantResponseDto.java +++ b/server/src/main/java/com/plantity/server/domain/myPlant/MyPlantResponseDto.java @@ -13,6 +13,7 @@ public class MyPlantResponseDto { private Long myPlantId; private String plantName; private String plantNickName; + private String plantAdaptTime; private String filePath; //private PlantLog plantLog; @@ -21,6 +22,7 @@ private MyPlantResponseDto(MyPlant myPlant) { this.filePath = myPlant.getFilePath(); this.myPlantId = myPlant.getMyPlantId(); this.plantNickName = myPlant.getPlantNickName(); + this.plantAdaptTime = myPlant.getPlantAdaptTime(); } public static MyPlantResponseDto from(MyPlant myPlant) {