Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: problem, subscripton usecase 패키지 위치 변경 #86

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.few.api.web.usecase.problem
package com.few.api.domain.problem

import com.few.api.repo.dao.problem.ProblemDao
import com.few.api.repo.dao.problem.SubmitHistoryDao
import com.few.api.repo.dao.problem.command.InsertSubmitHistoryCommand
import com.few.api.repo.dao.problem.query.SelectProblemAnswerQuery
import com.few.api.web.usecase.problem.`in`.CheckProblemUseCaseIn
import com.few.api.web.usecase.problem.out.CheckProblemUseCaseOut
import com.few.api.domain.problem.`in`.CheckProblemUseCaseIn
import com.few.api.domain.problem.out.CheckProblemUseCaseOut
import org.springframework.stereotype.Component
import org.springframework.transaction.annotation.Transactional

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.few.api.web.usecase.problem
package com.few.api.domain.problem

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import com.few.api.repo.dao.problem.ProblemDao
import com.few.api.repo.dao.problem.query.SelectProblemQuery
import com.few.api.web.usecase.problem.`in`.ReadProblemUseCaseIn
import com.few.api.web.usecase.problem.out.ReadProblemContentsUseCaseOutDetail
import com.few.api.web.usecase.problem.out.ReadProblemUseCaseOut
import com.few.api.domain.problem.`in`.ReadProblemUseCaseIn
import com.few.api.domain.problem.out.ReadProblemContentsUseCaseOutDetail
import com.few.api.domain.problem.out.ReadProblemUseCaseOut
import org.springframework.stereotype.Component
import org.springframework.transaction.annotation.Transactional

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.few.api.web.usecase.problem.`in`
package com.few.api.domain.problem.`in`

data class CheckProblemUseCaseIn(
val problemId: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.few.api.web.usecase.problem.`in`
package com.few.api.domain.problem.`in`

data class ReadProblemUseCaseIn(
val problemId: Long
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.few.api.web.usecase.problem.out
package com.few.api.domain.problem.out

data class CheckProblemUseCaseOut(
val explanation: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.few.api.web.usecase.problem.out
package com.few.api.domain.problem.out

class ReadProblemUseCaseOut(
val id: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.few.api.web.usecase.subscription
package com.few.api.domain.subscription

import com.few.api.repo.dao.subscription.SubscriptionDao
import com.few.api.repo.dao.subscription.command.InsertWorkbookSubscriptionCommand
import com.few.api.repo.dao.subscription.query.CountWorkbookSubscriptionQuery
import com.few.api.web.usecase.subscription.`in`.SubscribeWorkbookUseCaseIn
import com.few.api.domain.subscription.`in`.SubscribeWorkbookUseCaseIn
import org.springframework.stereotype.Component
import org.springframework.transaction.annotation.Transactional

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.few.api.web.usecase.subscription
package com.few.api.domain.subscription

import com.few.api.repo.dao.subscription.SubscriptionDao
import com.few.api.repo.dao.subscription.command.UpdateDeletedAtInWorkbookSubscriptionCommand
import com.few.api.repo.dao.subscription.query.CountWorkbookSubscriptionQuery
import com.few.api.web.usecase.subscription.`in`.UnsubscribeWorkbookUseCaseIn
import com.few.api.domain.subscription.`in`.UnsubscribeWorkbookUseCaseIn
import org.springframework.stereotype.Component
import org.springframework.transaction.annotation.Transactional

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.few.api.web.usecase.subscription.`in`
package com.few.api.domain.subscription.`in`

data class SubscribeWorkbookUseCaseIn(
val workbookId: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.few.api.web.usecase.subscription.`in`
package com.few.api.domain.subscription.`in`

data class UnsubscribeWorkbookUseCaseIn(
val workbookId: Long,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import com.few.api.web.controller.problem.response.ProblemContents
import com.few.api.web.controller.problem.response.ReadProblemResponse
import com.few.api.web.support.ApiResponse
import com.few.api.web.support.ApiResponseGenerator
import com.few.api.web.usecase.problem.CheckProblemUseCase
import com.few.api.web.usecase.problem.ReadProblemUseCase
import com.few.api.web.usecase.problem.`in`.CheckProblemUseCaseIn
import com.few.api.web.usecase.problem.`in`.ReadProblemUseCaseIn
import com.few.api.domain.problem.CheckProblemUseCase
import com.few.api.domain.problem.ReadProblemUseCase
import com.few.api.domain.problem.`in`.CheckProblemUseCaseIn
import com.few.api.domain.problem.`in`.ReadProblemUseCaseIn
import org.springframework.http.HttpStatus
import org.springframework.validation.annotation.Validated
import org.springframework.web.bind.annotation.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import com.few.api.web.controller.subscription.request.SubscribeWorkbookRequest
import com.few.api.web.controller.subscription.request.UnsubscribeWorkbookRequest
import com.few.api.web.support.ApiResponse
import com.few.api.web.support.ApiResponseGenerator
import com.few.api.web.usecase.subscription.SubscribeWorkbookUseCase
import com.few.api.web.usecase.subscription.UnsubscribeWorkbookUseCase
import com.few.api.web.usecase.subscription.`in`.SubscribeWorkbookUseCaseIn
import com.few.api.web.usecase.subscription.`in`.UnsubscribeWorkbookUseCaseIn
import com.few.api.domain.subscription.SubscribeWorkbookUseCase
import com.few.api.domain.subscription.UnsubscribeWorkbookUseCase
import com.few.api.domain.subscription.`in`.SubscribeWorkbookUseCaseIn
import com.few.api.domain.subscription.`in`.UnsubscribeWorkbookUseCaseIn
import org.springframework.http.HttpStatus
import org.springframework.validation.annotation.Validated
import org.springframework.web.bind.annotation.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import com.few.api.web.controller.ControllerTestSpec
import com.few.api.web.controller.description.Description
import com.few.api.web.controller.helper.*
import com.few.api.web.controller.problem.request.CheckProblemBody
import com.few.api.web.usecase.problem.CheckProblemUseCase
import com.few.api.web.usecase.problem.ReadProblemUseCase
import com.few.api.web.usecase.problem.`in`.CheckProblemUseCaseIn
import com.few.api.web.usecase.problem.`in`.ReadProblemUseCaseIn
import com.few.api.web.usecase.problem.out.CheckProblemUseCaseOut
import com.few.api.web.usecase.problem.out.ReadProblemContentsUseCaseOutDetail
import com.few.api.web.usecase.problem.out.ReadProblemUseCaseOut
import com.few.api.domain.problem.CheckProblemUseCase
import com.few.api.domain.problem.ReadProblemUseCase
import com.few.api.domain.problem.`in`.CheckProblemUseCaseIn
import com.few.api.domain.problem.`in`.ReadProblemUseCaseIn
import com.few.api.domain.problem.out.CheckProblemUseCaseOut
import com.few.api.domain.problem.out.ReadProblemContentsUseCaseOutDetail
import com.few.api.domain.problem.out.ReadProblemUseCaseOut
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import com.few.api.web.controller.helper.toRequestSchema
import com.few.api.web.controller.helper.toResponseSchema
import com.few.api.web.controller.subscription.request.SubscribeWorkbookRequest
import com.few.api.web.controller.subscription.request.UnsubscribeWorkbookRequest
import com.few.api.web.usecase.subscription.SubscribeWorkbookUseCase
import com.few.api.web.usecase.subscription.UnsubscribeWorkbookUseCase
import com.few.api.web.usecase.subscription.`in`.SubscribeWorkbookUseCaseIn
import com.few.api.web.usecase.subscription.`in`.UnsubscribeWorkbookUseCaseIn
import com.few.api.domain.subscription.SubscribeWorkbookUseCase
import com.few.api.domain.subscription.UnsubscribeWorkbookUseCase
import com.few.api.domain.subscription.`in`.SubscribeWorkbookUseCaseIn
import com.few.api.domain.subscription.`in`.UnsubscribeWorkbookUseCaseIn
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
Expand Down
Loading