From 964c26e67e47bd9e79588204721acc467dd9739a Mon Sep 17 00:00:00 2001 From: jhg3410 Date: Tue, 22 Oct 2024 23:01:56 +0900 Subject: [PATCH] =?UTF-8?q?MONEYMONG-511=20feature:=20=EB=B2=84=EC=A0=84?= =?UTF-8?q?=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20=EC=B2=B4=ED=81=AC=20?= =?UTF-8?q?API=20=EB=B0=98=ED=99=98=EA=B0=92=20=EB=B3=80=EA=B2=BD(String?= =?UTF-8?q?=20->=20Unit)=20=EC=84=B1=EA=B3=B5,=20=EC=8B=A4=ED=8C=A8?= =?UTF-8?q?=EB=A1=9C=20=EB=82=98=EB=89=98=EC=96=B4=EC=84=9C=20=EB=AC=B4?= =?UTF-8?q?=EC=9D=98=EB=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/moneymong/moneymong/network/api/VersionApi.kt | 2 +- .../data/datasource/version/VersionRemoteDataSource.kt | 2 +- .../data/datasource/version/VersionRemoteDataSourceImpl.kt | 2 +- .../moneymong/data/repository/version/VersionRepositoryImpl.kt | 2 +- .../moneymong/domain/repository/version/VersionRepository.kt | 2 +- .../domain/usecase/version/CheckVersionUpdateUseCase.kt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/network/src/main/java/com/moneymong/moneymong/network/api/VersionApi.kt b/core/network/src/main/java/com/moneymong/moneymong/network/api/VersionApi.kt index 488b305c..b709d84a 100644 --- a/core/network/src/main/java/com/moneymong/moneymong/network/api/VersionApi.kt +++ b/core/network/src/main/java/com/moneymong/moneymong/network/api/VersionApi.kt @@ -9,5 +9,5 @@ interface VersionApi { @POST("api/v1/version") suspend fun checkUpdate( @Body version: VersionRequest - ): Result + ): Result } \ No newline at end of file diff --git a/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSource.kt b/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSource.kt index cf6e4225..ebc32476 100644 --- a/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSource.kt +++ b/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSource.kt @@ -2,5 +2,5 @@ package com.moneymong.moneymong.data.datasource.version interface VersionRemoteDataSource { - suspend fun checkUpdate(version: String): Result + suspend fun checkUpdate(version: String): Result } \ No newline at end of file diff --git a/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSourceImpl.kt b/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSourceImpl.kt index 084d4c60..847feef0 100644 --- a/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSourceImpl.kt +++ b/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSourceImpl.kt @@ -7,7 +7,7 @@ import javax.inject.Inject class VersionRemoteDataSourceImpl @Inject constructor( private val versionApi: VersionApi ) : VersionRemoteDataSource { - override suspend fun checkUpdate(version: String): Result { + override suspend fun checkUpdate(version: String): Result { return versionApi.checkUpdate(VersionRequest(version = version)) } } \ No newline at end of file diff --git a/data/src/main/java/com/moneymong/moneymong/data/repository/version/VersionRepositoryImpl.kt b/data/src/main/java/com/moneymong/moneymong/data/repository/version/VersionRepositoryImpl.kt index dbd5b275..c052a8ac 100644 --- a/data/src/main/java/com/moneymong/moneymong/data/repository/version/VersionRepositoryImpl.kt +++ b/data/src/main/java/com/moneymong/moneymong/data/repository/version/VersionRepositoryImpl.kt @@ -8,7 +8,7 @@ class VersionRepositoryImpl @Inject constructor( private val versionRemoteDataSource: VersionRemoteDataSource ) : VersionRepository { - override suspend fun checkUpdate(version: String): Result { + override suspend fun checkUpdate(version: String): Result { return versionRemoteDataSource.checkUpdate(version = version) } } \ No newline at end of file diff --git a/domain/src/main/java/com/moneymong/moneymong/domain/repository/version/VersionRepository.kt b/domain/src/main/java/com/moneymong/moneymong/domain/repository/version/VersionRepository.kt index 73498e36..bae12785 100644 --- a/domain/src/main/java/com/moneymong/moneymong/domain/repository/version/VersionRepository.kt +++ b/domain/src/main/java/com/moneymong/moneymong/domain/repository/version/VersionRepository.kt @@ -1,5 +1,5 @@ package com.moneymong.moneymong.domain.repository.version interface VersionRepository { - suspend fun checkUpdate(version: String): Result + suspend fun checkUpdate(version: String): Result } \ No newline at end of file diff --git a/domain/src/main/java/com/moneymong/moneymong/domain/usecase/version/CheckVersionUpdateUseCase.kt b/domain/src/main/java/com/moneymong/moneymong/domain/usecase/version/CheckVersionUpdateUseCase.kt index 5cddf435..f2f96b75 100644 --- a/domain/src/main/java/com/moneymong/moneymong/domain/usecase/version/CheckVersionUpdateUseCase.kt +++ b/domain/src/main/java/com/moneymong/moneymong/domain/usecase/version/CheckVersionUpdateUseCase.kt @@ -7,7 +7,7 @@ class CheckVersionUpdateUseCase @Inject constructor( private val versionRepository: VersionRepository ) { - suspend operator fun invoke(version: String): Result { + suspend operator fun invoke(version: String): Result { return versionRepository.checkUpdate(version = version) } } \ No newline at end of file