-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into feat/#430_hunca
- Loading branch information
Showing
13 changed files
with
139 additions
and
199 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
5 changes: 5 additions & 0 deletions
5
api/src/main/kotlin/com/few/api/domain/workbook/usecase/model/WorkBooks.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,5 @@ | ||
package com.few.api.domain.workbook.usecase.model | ||
|
||
data class WorkBooks( | ||
val workbookData: List<WorkBook>, | ||
) |
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
5 changes: 5 additions & 0 deletions
5
api/src/main/kotlin/com/few/api/domain/workbook/usecase/model/order/OrderAbleWorkBooks.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,5 @@ | ||
package com.few.api.domain.workbook.usecase.model.order | ||
|
||
open class OrderAbleWorkBooks( | ||
protected open val targetWorkBooks: OrderTargetWorkBooks, | ||
) |
7 changes: 7 additions & 0 deletions
7
api/src/main/kotlin/com/few/api/domain/workbook/usecase/model/order/OrderTargetWorkBooks.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,7 @@ | ||
package com.few.api.domain.workbook.usecase.model.order | ||
|
||
import com.few.api.domain.workbook.usecase.model.WorkBooks | ||
|
||
data class OrderTargetWorkBooks( | ||
val workbooks: WorkBooks, | ||
) |
9 changes: 9 additions & 0 deletions
9
api/src/main/kotlin/com/few/api/domain/workbook/usecase/model/order/OrderedWorkBooks.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,9 @@ | ||
package com.few.api.domain.workbook.usecase.model.order | ||
|
||
import com.few.api.domain.workbook.usecase.model.WorkBooks | ||
|
||
class OrderedWorkBooks( | ||
orderTargetWorkBooks: OrderTargetWorkBooks, | ||
) : OrderAbleWorkBooks(orderTargetWorkBooks) { | ||
val orderedWorkbooks: WorkBooks = orderTargetWorkBooks.workbooks | ||
} |
11 changes: 11 additions & 0 deletions
11
api/src/main/kotlin/com/few/api/domain/workbook/usecase/model/order/UnOrderedWorkBooks.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,11 @@ | ||
package com.few.api.domain.workbook.usecase.model.order | ||
|
||
class UnOrderedWorkBooks( | ||
orderTargetWorkBooks: OrderTargetWorkBooks, | ||
private val delegator: WorkbookOrderDelegator, | ||
) : OrderAbleWorkBooks(orderTargetWorkBooks) { | ||
fun order(): OrderedWorkBooks { | ||
val orderedWorkbooks = delegator.order(targetWorkBooks) | ||
return OrderedWorkBooks(orderedWorkbooks) | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...src/main/kotlin/com/few/api/domain/workbook/usecase/model/order/WorkbookOrderDelegator.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,11 @@ | ||
package com.few.api.domain.workbook.usecase.model.order | ||
|
||
interface WorkbookOrderDelegator { | ||
|
||
/** | ||
* 워크북을 정렬합니다. | ||
* @param targetWorkBooks 정렬할 워크북 목록 | ||
* @return 정렬된 워크북 목록 | ||
*/ | ||
fun order(targetWorkBooks: OrderTargetWorkBooks): OrderTargetWorkBooks | ||
} |
11 changes: 0 additions & 11 deletions
11
...n/kotlin/com/few/api/domain/workbook/usecase/service/order/BasicWorkbookOrderDelegator.kt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...c/main/kotlin/com/few/api/domain/workbook/usecase/service/order/WorkbookOrderDelegator.kt
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...otlin/com/few/api/domain/workbook/usecase/service/order/WorkbookOrderDelegatorExecutor.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.