Skip to content

Commit

Permalink
update :: named argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ani2689 committed Oct 20, 2023
1 parent 56a64c4 commit 0fe3ca5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import team.msg.domain.lecture.presentation.data.web.CreateLectureWebRequest
class LectureRequestMapperImpl : LectureRequestMapper{
/**
* Lecture 개설 Web Request 를 애플리케이션 영역에서 사용될 Dto 로 매핑합니다.
* @param LectureCreateWebRequest
* @param CreateLectureWebRequest
*/
override fun createLectureWebRequestToDto(request: CreateLectureWebRequest) = CreateLectureRequest(
request.name,
request.content,
request.startDate,
request.endDate,
request.completeDate,
request.lectureType,
request.credit,
request.maxRegisteredUser
name = request.name,
content = request.content,
startDate = request.startDate,
endDate = request.endDate,
completeDate = request.completeDate,
lectureType = request.lectureType,
credit = request.credit,
maxRegisteredUser = request.maxRegisteredUser
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ class LectureServiceImpl(
}

val lecture = Lecture(
UUID.randomUUID(),
user,
request.name,
request.startDate,
request.endDate,
request.completeDate,
request.content,
request.lectureType,
credit,
user.name,
request.maxRegisteredUser
id = UUID.randomUUID(),
user = user,
name = request.name,
startDate = request.startDate,
endDate = request.endDate,
completeDate = request.completeDate,
content = request.content,
lectureType = request.lectureType,
credit = credit,
instructor = user.name,
maxRegisteredUser = request.maxRegisteredUser
)

lectureRepository.save(lecture)
Expand Down

0 comments on commit 0fe3ca5

Please sign in to comment.