diff --git a/app/src/main/java/com/project/meongcare/supplement/model/data/repository/SupplementRepository.kt b/app/src/main/java/com/project/meongcare/supplement/model/data/repository/SupplementRepository.kt index c22e8b1a..e85486ed 100644 --- a/app/src/main/java/com/project/meongcare/supplement/model/data/repository/SupplementRepository.kt +++ b/app/src/main/java/com/project/meongcare/supplement/model/data/repository/SupplementRepository.kt @@ -39,7 +39,7 @@ class SupplementRepository suspend fun getSupplementDetail( accessToken: String?, - supplementsId: Int + supplementsId: Int, ): Result = kotlin.runCatching { val response = @@ -57,7 +57,7 @@ class SupplementRepository suspend fun getSupplementDogs( accessToken: String?, - dogId: Long? + dogId: Long?, ): Result = kotlin.runCatching { val response = supplementAPI.getSupplementDogs(accessToken, dogId) @@ -71,7 +71,7 @@ class SupplementRepository suspend fun checkSupplement( accessToken: String?, - supplementsRecordId: Int + supplementsRecordId: Int, ): Result = kotlin.runCatching { val response = @@ -137,7 +137,7 @@ class SupplementRepository suspend fun deleteSupplementsById( accessToken: String?, - supplementsIds: IntArray + supplementsIds: IntArray, ): Int { val response = supplementAPI.deleteSupplementsById( @@ -151,7 +151,7 @@ class SupplementRepository suspend fun deleteSupplementById( accessToken: String?, - supplementsId: Int + supplementsId: Int, ): Int { val response = supplementAPI.deleteSupplementById( @@ -163,7 +163,7 @@ class SupplementRepository suspend fun addSupplement( accessToken: String?, - requestSupplement: RequestSupplement + requestSupplement: RequestSupplement, ): Int { val response = supplementAPI.addSupplement( diff --git a/app/src/main/java/com/project/meongcare/supplement/viewmodel/SupplementViewModel.kt b/app/src/main/java/com/project/meongcare/supplement/viewmodel/SupplementViewModel.kt index 22e5eb06..20b2ef05 100644 --- a/app/src/main/java/com/project/meongcare/supplement/viewmodel/SupplementViewModel.kt +++ b/app/src/main/java/com/project/meongcare/supplement/viewmodel/SupplementViewModel.kt @@ -69,9 +69,7 @@ class SupplementViewModel supplementAddImg.value = null } - fun getSupplements( - date: Date, - ) { + fun getSupplements(date: Date) { viewModelScope.launch { val covertedDate = convertToDateToDate(date) val accessToken: String? = @@ -167,9 +165,9 @@ class SupplementViewModel dto, file, ) - Log.d("영양제 추가 확인",supplementDto.toString()) + Log.d("영양제 추가 확인", supplementDto.toString()) supplementCode.value = repository.addSupplement(accessToken, requestSupplement) - Log.d("영양제 추가 확인2",supplementCode.value.toString()) + Log.d("영양제 추가 확인2", supplementCode.value.toString()) } }