-
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.
- Loading branch information
Showing
9 changed files
with
92 additions
and
102 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
src/main/kotlin/data/repository/CourseTakingApplicationListsRepository.kt
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
src/main/kotlin/data/repository/CourseTakingApplicationsRepository.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,13 @@ | ||
package data.repository | ||
|
||
import domain.entity.* | ||
|
||
interface CourseTakingApplicationsRepository { | ||
|
||
suspend fun findByStudentId(studentId: StudentId): List<CourseTakingApplication> | ||
suspend fun findByCourseId(courseId: CourseId): List<CourseTakingApplication> | ||
suspend fun findByCourseTakingApplicationId(courseTakingApplicationId: CourseTakingApplicationId): CourseTakingApplication | ||
suspend fun save(courseTakingApplication: CourseTakingApplication) | ||
suspend fun delete(courseTakingApplication: CourseTakingApplication) | ||
|
||
} |
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: 0 additions & 24 deletions
24
src/main/kotlin/domain/entity/CourseTakingApplicationList.kt
This file was deleted.
Oops, something went wrong.
7 changes: 3 additions & 4 deletions
7
src/main/kotlin/domain/service/CourseTakingApplicationService.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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package domain.service | ||
|
||
import domain.entity.* | ||
import org.http4k.core.Request | ||
|
||
interface CourseTakingApplicationService { | ||
suspend fun applyCourseTaking(courseTakingApplicationId: CourseTakingApplicationId, studentId:StudentId, courseId: CourseId) | ||
suspend fun cancelCourseTaking(studentId:StudentId,courseTakingApplicationId: CourseTakingApplicationId) | ||
suspend fun cancelCourseTaking(courseTakingApplicationId: CourseTakingApplicationId) | ||
suspend fun applyCourseTakingBasedOnFirstserved(courseTakingApplicationId: CourseTakingApplicationId, studentId:StudentId, courseId: CourseId) | ||
suspend fun getCourseTakingApplicationList(studentId: StudentId): CourseTakingApplicationList | ||
|
||
suspend fun getCourseTakingApplications(studentId: StudentId): List<CourseTakingApplication> | ||
} |
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
8 changes: 4 additions & 4 deletions
8
src/main/kotlin/domain/service/impl/FirstServedManagementServiceImpl.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
Oops, something went wrong.