Skip to content

Commit

Permalink
refactor: domain:lectureevaluation 하위 모듈 통합
Browse files Browse the repository at this point in the history
  • Loading branch information
jinukeu committed Jul 20, 2024
1 parent 2bf6509 commit 468c651
Show file tree
Hide file tree
Showing 50 changed files with 78 additions and 113 deletions.
4 changes: 1 addition & 3 deletions data/lectureevaluation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ android {
}

dependencies {
implementation(projects.domain.lectureevaluation.viewerreporter)
implementation(projects.domain.lectureevaluation.my)
implementation(projects.domain.lectureevaluation.editor)
implementation(projects.domain.lectureevaluation)

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import com.suwiki.data.lectureevaluation.repository.LectureEditorRepositoryImpl
import com.suwiki.data.lectureevaluation.repository.LectureMyRepositoryImpl
import com.suwiki.data.lectureevaluation.repository.LectureProviderRepositoryImpl
import com.suwiki.data.lectureevaluation.repository.LectureReportRepositoryImpl
import com.suwiki.domain.lectureevaluation.editor.repository.ExamEditorRepository
import com.suwiki.domain.lectureevaluation.editor.repository.LectureEditorRepository
import com.suwiki.domain.lectureevaluation.my.repository.ExamMyRepository
import com.suwiki.domain.lectureevaluation.my.repository.LectureMyRepository
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.ExamProviderRepository
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.ExamReportRepository
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureProviderRepository
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureReportRepository
import com.suwiki.domain.lectureevaluation.repository.ExamEditorRepository
import com.suwiki.domain.lectureevaluation.repository.LectureEditorRepository
import com.suwiki.domain.lectureevaluation.repository.ExamMyRepository
import com.suwiki.domain.lectureevaluation.repository.LectureMyRepository
import com.suwiki.domain.lectureevaluation.repository.ExamProviderRepository
import com.suwiki.domain.lectureevaluation.repository.ExamReportRepository
import com.suwiki.domain.lectureevaluation.repository.LectureProviderRepository
import com.suwiki.domain.lectureevaluation.repository.LectureReportRepository
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.data.lectureevaluation.datasource.RemoteExamEditorDataSource
import com.suwiki.domain.lectureevaluation.editor.repository.ExamEditorRepository
import com.suwiki.domain.lectureevaluation.repository.ExamEditorRepository
import javax.inject.Inject

class ExamEditorRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.suwiki.data.lectureevaluation.repository
import com.suwiki.core.model.lectureevaluation.PurchaseHistory
import com.suwiki.core.model.lectureevaluation.exam.MyExamEvaluation
import com.suwiki.data.lectureevaluation.datasource.RemoteExamMyDataSource
import com.suwiki.domain.lectureevaluation.my.repository.ExamMyRepository
import com.suwiki.domain.lectureevaluation.repository.ExamMyRepository
import javax.inject.Inject

class ExamMyRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.suwiki.data.lectureevaluation.repository

import com.suwiki.core.model.lectureevaluation.exam.ExamEvaluationList
import com.suwiki.data.lectureevaluation.datasource.RemoteExamProviderDataSource
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.ExamProviderRepository
import com.suwiki.domain.lectureevaluation.repository.ExamProviderRepository
import javax.inject.Inject

class ExamProviderRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.data.lectureevaluation.datasource.RemoteExamReportDataSource
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.ExamReportRepository
import com.suwiki.domain.lectureevaluation.repository.ExamReportRepository
import javax.inject.Inject

class ExamReportRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.data.lectureevaluation.datasource.RemoteLectureEditorDataSource
import com.suwiki.domain.lectureevaluation.editor.repository.LectureEditorRepository
import com.suwiki.domain.lectureevaluation.repository.LectureEditorRepository
import javax.inject.Inject

class LectureEditorRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.suwiki.data.lectureevaluation.repository

import com.suwiki.core.model.lectureevaluation.lecture.MyLectureEvaluation
import com.suwiki.data.lectureevaluation.datasource.RemoteLectureMyDataSource
import com.suwiki.domain.lectureevaluation.my.repository.LectureMyRepository
import com.suwiki.domain.lectureevaluation.repository.LectureMyRepository
import javax.inject.Inject

class LectureMyRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationAverage
import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationExtraAverage
import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationList
import com.suwiki.data.lectureevaluation.datasource.RemoteLectureProviderDataSource
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureProviderRepository
import com.suwiki.domain.lectureevaluation.repository.LectureProviderRepository
import javax.inject.Inject

class LectureProviderRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.data.lectureevaluation.datasource.RemoteLectureReportDataSource
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureReportRepository
import com.suwiki.domain.lectureevaluation.repository.LectureReportRepository
import javax.inject.Inject

class LectureReportRepositoryImpl @Inject constructor(
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion domain/lectureevaluation/editor/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion domain/lectureevaluation/my/.gitignore

This file was deleted.

13 changes: 0 additions & 13 deletions domain/lectureevaluation/my/build.gradle.kts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.domain.lectureevaluation.editor.repository
package com.suwiki.domain.lectureevaluation.repository

interface ExamEditorRepository {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.domain.lectureevaluation.my.repository
package com.suwiki.domain.lectureevaluation.repository

import com.suwiki.core.model.lectureevaluation.PurchaseHistory
import com.suwiki.core.model.lectureevaluation.exam.MyExamEvaluation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.repository
package com.suwiki.domain.lectureevaluation.repository

import com.suwiki.core.model.lectureevaluation.exam.ExamEvaluationList

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.repository
package com.suwiki.domain.lectureevaluation.repository

interface ExamReportRepository {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.domain.lectureevaluation.editor.repository
package com.suwiki.domain.lectureevaluation.repository

interface LectureEditorRepository {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.domain.lectureevaluation.my.repository
package com.suwiki.domain.lectureevaluation.repository

import com.suwiki.core.model.lectureevaluation.lecture.MyLectureEvaluation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.repository
package com.suwiki.domain.lectureevaluation.repository

import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationAverage
import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationExtraAverage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.repository
package com.suwiki.domain.lectureevaluation.repository

interface LectureReportRepository {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.usecase.exam
package com.suwiki.domain.lectureevaluation.usecase.exam

import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.ExamProviderRepository
import com.suwiki.domain.lectureevaluation.repository.ExamProviderRepository
import javax.inject.Inject

class BuyExamUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.domain.lectureevaluation.editor.usecase.exam
package com.suwiki.domain.lectureevaluation.usecase.exam

import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.editor.repository.ExamEditorRepository
import com.suwiki.domain.lectureevaluation.repository.ExamEditorRepository
import javax.inject.Inject

class DeleteExamEvaluationUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.usecase.exam
package com.suwiki.domain.lectureevaluation.usecase.exam

import com.suwiki.core.model.lectureevaluation.exam.ExamEvaluationList
import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.ExamProviderRepository
import com.suwiki.domain.lectureevaluation.repository.ExamProviderRepository
import javax.inject.Inject

class GetExamEvaluationListUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.suwiki.domain.lectureevaluation.my.usecase
package com.suwiki.domain.lectureevaluation.usecase.exam

import com.suwiki.core.model.lectureevaluation.exam.MyExamEvaluation
import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.my.repository.ExamMyRepository
import com.suwiki.domain.lectureevaluation.repository.ExamMyRepository
import javax.inject.Inject

class GetMyExamEvaluationListUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.suwiki.domain.lectureevaluation.my.usecase
package com.suwiki.domain.lectureevaluation.usecase.exam

import com.suwiki.core.model.lectureevaluation.PurchaseHistory
import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.my.repository.ExamMyRepository
import com.suwiki.domain.lectureevaluation.repository.ExamMyRepository
import javax.inject.Inject

class GetPurchaseHistoryUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.domain.lectureevaluation.editor.usecase.exam
package com.suwiki.domain.lectureevaluation.usecase.exam

import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.editor.repository.ExamEditorRepository
import com.suwiki.domain.lectureevaluation.repository.ExamEditorRepository
import javax.inject.Inject

class PostExamEvaluationUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.usecase.exam
package com.suwiki.domain.lectureevaluation.usecase.exam

import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.ExamReportRepository
import com.suwiki.domain.lectureevaluation.repository.ExamReportRepository
import javax.inject.Inject

class ReportExamUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.domain.lectureevaluation.editor.usecase.exam
package com.suwiki.domain.lectureevaluation.usecase.exam

import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.editor.repository.ExamEditorRepository
import com.suwiki.domain.lectureevaluation.repository.ExamEditorRepository
import javax.inject.Inject

class UpdateExamEvaluationUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.domain.lectureevaluation.editor.usecase.lecture
package com.suwiki.domain.lectureevaluation.usecase.lecture

import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.editor.repository.LectureEditorRepository
import com.suwiki.domain.lectureevaluation.repository.LectureEditorRepository
import javax.inject.Inject

class DeleteLectureEvaluationUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.usecase.lecture
package com.suwiki.domain.lectureevaluation.usecase.lecture

import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationAverage
import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureProviderRepository
import com.suwiki.domain.lectureevaluation.repository.LectureProviderRepository
import javax.inject.Inject

class GetLectureEvaluationAverageListUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.usecase.lecture
package com.suwiki.domain.lectureevaluation.usecase.lecture

import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationExtraAverage
import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureProviderRepository
import com.suwiki.domain.lectureevaluation.repository.LectureProviderRepository
import javax.inject.Inject

class GetLectureEvaluationExtraAverageUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.usecase.lecture
package com.suwiki.domain.lectureevaluation.usecase.lecture

import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationList
import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureProviderRepository
import com.suwiki.domain.lectureevaluation.repository.LectureProviderRepository
import javax.inject.Inject

class GetLectureEvaluationListUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.suwiki.domain.lectureevaluation.my.usecase
package com.suwiki.domain.lectureevaluation.usecase.lecture

import com.suwiki.core.model.lectureevaluation.lecture.MyLectureEvaluation
import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.my.repository.LectureMyRepository
import com.suwiki.domain.lectureevaluation.repository.LectureMyRepository
import javax.inject.Inject

class GetMyLectureEvaluationListUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.domain.lectureevaluation.editor.usecase.lecture
package com.suwiki.domain.lectureevaluation.usecase.lecture

import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.editor.repository.LectureEditorRepository
import com.suwiki.domain.lectureevaluation.repository.LectureEditorRepository
import javax.inject.Inject

class PostLectureEvaluationUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.usecase.lecture
package com.suwiki.domain.lectureevaluation.usecase.lecture

import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureReportRepository
import com.suwiki.domain.lectureevaluation.repository.LectureReportRepository
import javax.inject.Inject

class ReportLectureUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.suwiki.domain.lectureevaluation.viewerreporter.usecase.lecture
package com.suwiki.domain.lectureevaluation.usecase.lecture

import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationAverage
import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureProviderRepository
import com.suwiki.domain.lectureevaluation.repository.LectureProviderRepository
import javax.inject.Inject

class RetrieveLectureEvaluationAverageListUseCase @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.domain.lectureevaluation.editor.usecase.lecture
package com.suwiki.domain.lectureevaluation.usecase.lecture

import com.suwiki.domain.common.runCatchingIgnoreCancelled
import com.suwiki.domain.lectureevaluation.editor.repository.LectureEditorRepository
import com.suwiki.domain.lectureevaluation.repository.LectureEditorRepository
import javax.inject.Inject

class UpdateLectureEvaluationUseCase @Inject constructor(
Expand Down
1 change: 0 additions & 1 deletion domain/lectureevaluation/viewerreporter/.gitignore

This file was deleted.

13 changes: 0 additions & 13 deletions domain/lectureevaluation/viewerreporter/build.gradle.kts

This file was deleted.

4 changes: 1 addition & 3 deletions presentation/lectureevaluation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ android {

dependencies {
implementation(projects.domain.user)
implementation(projects.domain.lectureevaluation.editor)
implementation(projects.domain.lectureevaluation.my)
implementation(projects.domain.lectureevaluation.viewerreporter)
implementation(projects.domain.lectureevaluation)

implementation(libs.kotlinx.serialization.json)
implementation(libs.compose.toolbar)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import com.suwiki.core.model.enums.ExamInfo
import com.suwiki.core.model.enums.ExamLevel
import com.suwiki.core.model.enums.ExamType
import com.suwiki.core.model.lectureevaluation.exam.MyExamEvaluation
import com.suwiki.domain.lectureevaluation.editor.usecase.exam.PostExamEvaluationUseCase
import com.suwiki.domain.lectureevaluation.editor.usecase.exam.UpdateExamEvaluationUseCase
import com.suwiki.domain.lectureevaluation.usecase.exam.PostExamEvaluationUseCase
import com.suwiki.domain.lectureevaluation.usecase.exam.UpdateExamEvaluationUseCase
import com.suwiki.presentation.common.ui.extension.decodeFromUri
import com.suwiki.presentation.lectureevaluation.navigation.EvaluationEditorRoute
import dagger.hilt.android.lifecycle.HiltViewModel
Expand Down
Loading

0 comments on commit 468c651

Please sign in to comment.