From 1c75ae297f30495e7db5256cf9f105c6e3439579 Mon Sep 17 00:00:00 2001 From: jeongjaino Date: Wed, 11 Oct 2023 13:45:11 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20#15=20:=20usecase=20-=20Singleton=20A?= =?UTF-8?q?nnotation=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/wap/wapp/core/domain/usecase/auth/DeleteUserUseCase.kt | 2 ++ .../com/wap/wapp/core/domain/usecase/auth/SignOutUseCase.kt | 2 ++ .../wap/wapp/core/domain/usecase/user/PostUserProfileUseCase.kt | 2 ++ 3 files changed, 6 insertions(+) diff --git a/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/auth/DeleteUserUseCase.kt b/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/auth/DeleteUserUseCase.kt index 0df68d2d..3c08f196 100644 --- a/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/auth/DeleteUserUseCase.kt +++ b/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/auth/DeleteUserUseCase.kt @@ -2,7 +2,9 @@ package com.wap.wapp.core.domain.usecase.auth import com.wap.wapp.core.data.repository.auth.AuthRepository import javax.inject.Inject +import javax.inject.Singleton +@Singleton class DeleteUserUseCase @Inject constructor( private val authRepository: AuthRepository, ) { diff --git a/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/auth/SignOutUseCase.kt b/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/auth/SignOutUseCase.kt index 814c4cb9..eae7758b 100644 --- a/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/auth/SignOutUseCase.kt +++ b/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/auth/SignOutUseCase.kt @@ -2,7 +2,9 @@ package com.wap.wapp.core.domain.usecase.auth import com.wap.wapp.core.data.repository.auth.AuthRepository import javax.inject.Inject +import javax.inject.Singleton +@Singleton class SignOutUseCase @Inject constructor( private val authRepository: AuthRepository, ) { diff --git a/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/user/PostUserProfileUseCase.kt b/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/user/PostUserProfileUseCase.kt index 9377f5d6..136b9ddc 100644 --- a/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/user/PostUserProfileUseCase.kt +++ b/core/domain/src/main/java/com/wap/wapp/core/domain/usecase/user/PostUserProfileUseCase.kt @@ -2,7 +2,9 @@ package com.wap.wapp.core.domain.usecase.user import com.wap.wapp.core.data.repository.user.UserRepository import javax.inject.Inject +import javax.inject.Singleton +@Singleton class PostUserProfileUseCase @Inject constructor( private val userRepository: UserRepository, ) {