-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from AlongTheBlue/develop
[Feat] 여행따라 코스 등록 API user 추가
- Loading branch information
Showing
8 changed files
with
112 additions
and
7 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
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
26 changes: 26 additions & 0 deletions
26
...e_server/global/data/tourcommunity/dto/request/CreateUserTourCourseServiceRequestDto.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,26 @@ | ||
package org.alongtheblue.alongtheblue_server.global.data.tourcommunity.dto.request; | ||
|
||
import org.alongtheblue.alongtheblue_server.domain.userInfo.domain.UserInfo; | ||
import org.alongtheblue.alongtheblue_server.global.data.tourcommunity.TourPostItem; | ||
import org.alongtheblue.alongtheblue_server.global.data.tourcommunity.UserTourCourse; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
public record CreateUserTourCourseServiceRequestDto( | ||
String title, | ||
String content, | ||
List<TourPostItemRequestDto> tourPostItems, | ||
// List<TourPostHashTag> hashTags, | ||
List<List<Integer>> imgIndexArr | ||
) { | ||
public UserTourCourse toEntity(UserInfo userInfo, Date date, List<TourPostItem> tourItems) { | ||
return UserTourCourse.builder() | ||
.createdate(date) | ||
.title(title) | ||
.writing(content) | ||
.tourPostItems(tourItems) | ||
.userInfo(userInfo) | ||
.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