-
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.
merge :: (#28) 주간 업무 보고, 주간 행사 일정 생성 api
merge :: (#28) 주간 업무 보고, 주간 행사 일정 생성 api
- Loading branch information
Showing
15 changed files
with
135 additions
and
3 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...lin/com/kodomo/juganbbojjak/domain/event_schedule/dto/CreateWeeklyEventScheduleRequest.kt
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,8 @@ | ||
package com.kodomo.juganbbojjak.domain.event_schedule.dto | ||
|
||
import java.time.LocalDate | ||
|
||
data class CreateWeeklyEventScheduleRequest( | ||
val startDate: LocalDate, | ||
val endDate: LocalDate, | ||
) |
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
21 changes: 21 additions & 0 deletions
21
...com/kodomo/juganbbojjak/domain/event_schedule/usecase/CreateWeeklyEventScheduleUseCase.kt
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,21 @@ | ||
package com.kodomo.juganbbojjak.domain.event_schedule.usecase | ||
|
||
import com.kodomo.juganbbojjak.common.annotation.UseCase | ||
import com.kodomo.juganbbojjak.domain.event_schedule.dto.CreateWeeklyEventScheduleRequest | ||
import com.kodomo.juganbbojjak.domain.event_schedule.model.WeeklyEventSchedule | ||
import com.kodomo.juganbbojjak.domain.event_schedule.spi.CommandEventSchedulePort | ||
|
||
@UseCase | ||
class CreateWeeklyEventScheduleUseCase( | ||
private val commandEventSchedulePort: CommandEventSchedulePort, | ||
) { | ||
|
||
fun execute(request: CreateWeeklyEventScheduleRequest) { | ||
commandEventSchedulePort.saveWeeklyEventSchedule( | ||
WeeklyEventSchedule( | ||
startDate = request.startDate, | ||
endDate = request.endDate, | ||
) | ||
) | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...in/kotlin/com/kodomo/juganbbojjak/domain/work_report/dto/CreateWeeklyWorkReportRequest.kt
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,8 @@ | ||
package com.kodomo.juganbbojjak.domain.work_report.dto | ||
|
||
import java.time.LocalDate | ||
|
||
data class CreateWeeklyWorkReportRequest( | ||
val startDate: LocalDate, | ||
val endDate: LocalDate, | ||
) |
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
1 change: 1 addition & 0 deletions
1
...lication/src/main/kotlin/com/kodomo/juganbbojjak/domain/work_report/spi/WorkReportPort.kt
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
21 changes: 21 additions & 0 deletions
21
...otlin/com/kodomo/juganbbojjak/domain/work_report/usecase/CreateWeeklyWorkReportUseCase.kt
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,21 @@ | ||
package com.kodomo.juganbbojjak.domain.work_report.usecase | ||
|
||
import com.kodomo.juganbbojjak.common.annotation.UseCase | ||
import com.kodomo.juganbbojjak.domain.work_report.dto.CreateWeeklyWorkReportRequest | ||
import com.kodomo.juganbbojjak.domain.work_report.model.WeeklyWorkReport | ||
import com.kodomo.juganbbojjak.domain.work_report.spi.CommandWeeklyWorkReportPort | ||
|
||
@UseCase | ||
class CreateWeeklyWorkReportUseCase( | ||
private val commandWorkReportPort: CommandWeeklyWorkReportPort, | ||
) { | ||
|
||
fun execute(request: CreateWeeklyWorkReportRequest) { | ||
commandWorkReportPort.saveWeeklyWorkReport( | ||
WeeklyWorkReport( | ||
startDate = request.startDate, | ||
endDate = request.endDate, | ||
) | ||
) | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
...uganbbojjak/domain/event_schedule/presentation/dto/CreateWeeklyEventScheduleWebRequest.kt
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,20 @@ | ||
package com.kodomo.juganbbojjak.domain.event_schedule.presentation.dto | ||
|
||
import com.kodomo.juganbbojjak.domain.event_schedule.dto.CreateWeeklyEventScheduleRequest | ||
import org.jetbrains.annotations.NotNull | ||
import java.time.LocalDate | ||
|
||
data class CreateWeeklyEventScheduleWebRequest( | ||
|
||
@field:NotNull | ||
val startDate: LocalDate, | ||
|
||
@field:NotNull | ||
val endDate: LocalDate, | ||
) { | ||
|
||
fun toDomainRequest() = CreateWeeklyEventScheduleRequest( | ||
startDate = startDate, | ||
endDate = endDate, | ||
) | ||
} |
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
20 changes: 20 additions & 0 deletions
20
...domo/juganbbojjak/domain/work_report/presentation/dto/CreateWeeklyWorkReportWebRequest.kt
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,20 @@ | ||
package com.kodomo.juganbbojjak.domain.work_report.presentation.dto | ||
|
||
import com.kodomo.juganbbojjak.domain.work_report.dto.CreateWeeklyWorkReportRequest | ||
import org.jetbrains.annotations.NotNull | ||
import java.time.LocalDate | ||
|
||
data class CreateWeeklyWorkReportWebRequest( | ||
|
||
@field:NotNull | ||
val startDate: LocalDate, | ||
|
||
@field:NotNull | ||
val endDate: LocalDate, | ||
) { | ||
|
||
fun toDomainRequest() = CreateWeeklyWorkReportRequest( | ||
startDate = startDate, | ||
endDate = endDate, | ||
) | ||
} |
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