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) {