-
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
1 parent
cff0382
commit e2f93d6
Showing
9 changed files
with
72 additions
and
10 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
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
12 changes: 12 additions & 0 deletions
12
...kotlin/xquare/app/xquareinfra/domain/deploy/adapter/dto/response/DeployDetailsResponse.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,12 @@ | ||
package xquare.app.xquareinfra.domain.deploy.adapter.dto.response | ||
|
||
import xquare.app.xquareinfra.domain.deploy.domain.DeployStatus | ||
|
||
data class DeployDetailsResponse( | ||
val teamNameEn: String, | ||
val teamNameKo: String, | ||
val oneLineDescription: String, | ||
val repository: String, | ||
val projectRootDir: String, | ||
val deployStatus: DeployStatus | ||
) |
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: 8 additions & 0 deletions
8
...otlin/xquare/app/xquareinfra/domain/deploy/application/port/in/GetDeployDetailsUseCase.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,8 @@ | ||
package xquare.app.xquareinfra.domain.deploy.application.port.`in` | ||
|
||
import xquare.app.xquareinfra.domain.deploy.adapter.dto.response.DeployDetailsResponse | ||
import java.util.UUID | ||
|
||
interface GetDeployDetailsUseCase { | ||
fun getDeployDetails(deployId: UUID): DeployDetailsResponse | ||
} |
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
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
29 changes: 29 additions & 0 deletions
29
...otlin/xquare/app/xquareinfra/domain/deploy/application/service/GetDeployDetailsService.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,29 @@ | ||
package xquare.app.xquareinfra.domain.deploy.application.service | ||
|
||
import org.springframework.stereotype.Service | ||
import org.springframework.transaction.annotation.Transactional | ||
import xquare.app.xquareinfra.domain.deploy.adapter.dto.response.DeployDetailsResponse | ||
import xquare.app.xquareinfra.domain.deploy.application.port.`in`.GetDeployDetailsUseCase | ||
import xquare.app.xquareinfra.domain.deploy.application.port.out.FindDeployPort | ||
import xquare.app.xquareinfra.domain.team.application.port.out.FindTeamPort | ||
import xquare.app.xquareinfra.infrastructure.exception.BusinessLogicException | ||
import java.util.* | ||
|
||
@Transactional | ||
@Service | ||
class GetDeployDetailsService( | ||
private val findDeployPort: FindDeployPort | ||
): GetDeployDetailsUseCase { | ||
override fun getDeployDetails(deployId: UUID): DeployDetailsResponse { | ||
val deploy = findDeployPort.findById(deployId) ?: throw BusinessLogicException.DEPLOY_NOT_FOUND | ||
|
||
return DeployDetailsResponse( | ||
teamNameKo = deploy.team.teamNameKo, | ||
teamNameEn = deploy.team.teamNameEn, | ||
oneLineDescription = deploy.oneLineDescription, | ||
repository = deploy.repository, | ||
projectRootDir = deploy.projectRootDir, | ||
deployStatus = deploy.deployStatus | ||
) | ||
} | ||
} |