-
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.
Browse files
Browse the repository at this point in the history
* feat: Workbooks 모델 생성 * refactor: 기존 WorkbookOrderDelegator 이동 및 order 메서드 시그니쳐 변경 * refactor: WorkbookOrderDelegator 구현체 이동 및 변경 반영 * feat: OrderedWorkBooks 모델 생성 * refactor: BrowseWorkbooksUseCase에 변경 반영 * refactor: 변경 사항 테스트에 반영 * refactor: WorkBook 클래스 범용 데이터 클래스로 변경 * feat: order 모델에서 사용할 OrderTargetWorkBooks 구현 * feat: order 모델 부모 객체 생성 * refactor: order 모델 변경 사항 반영 * refactor: 변경 사항 반영 * refactor: orderedWorkbooks 공통으로 처리할 수 있도록 수정 * fix: 변경 사항 테스트에 적용
- Loading branch information
1 parent
344520a
commit 605cb07
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.