Skip to content

Commit

Permalink
Merge pull request #47 from Plantity/feature/#46/fix_myPlantList_adapt
Browse files Browse the repository at this point in the history
[FIX] #46 내 식물 리스트 입양 날짜 추가
  • Loading branch information
OliviaYJH authored Nov 27, 2022
2 parents 731ac97 + c29873d commit 5e1d78d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public class MyPlantApiController {
@Value("${cloud.aws.s3.bucket}")
public String bucket;

// 내 식물 등록하기
@PostMapping("/save/{userId}")
public BaseResponse2<MyPlantSaveResponse> save(
@RequestParam String cntntsNo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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) {
Expand Down

0 comments on commit 5e1d78d

Please sign in to comment.