-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 임시 저장 기능, 저장 기능 모두 mongoDB 로 재편성 중
- SubTravelogue 임시 저장할때의 dto record 작성
- Loading branch information
1 parent
21408e0
commit c2c0c14
Showing
7 changed files
with
48 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...n/java/shop/zip/travel/domain/post/travelogue/dto/req/TravelogueTemporarySaveRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package shop.zip.travel.domain.post.travelogue.dto.req; | ||
|
||
import java.util.List; | ||
import org.bson.types.ObjectId; | ||
import shop.zip.travel.domain.post.subTravelogue.entity.SubTravelogue; | ||
|
||
public record TravelogueTemporarySaveRequest( | ||
ObjectId objectId, // id 로 Travelogue 찾기 | ||
int day, | ||
String title, | ||
List<String> places, | ||
String content, | ||
List<String> photos | ||
) { | ||
public SubTravelogue toSubTravelogue() { | ||
return SubTravelogue.builder() | ||
.day(day) | ||
.title(title) | ||
.places(places) | ||
.content(content) | ||
.photos(photos) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters