Skip to content

Commit

Permalink
[feat] DefaultMatchProfileUseCase
Browse files Browse the repository at this point in the history
  • Loading branch information
murjune committed Feb 4, 2024
1 parent f414b58 commit cd26dfc
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
package com.moya.funch.usecase

import com.moya.funch.entity.match.MatchingResult
import com.moya.funch.entity.match.Matching
import com.moya.funch.repository.MatchingRepository
import javax.inject.Inject

class DefaultMatchProfileUseCase @Inject constructor(
private val matchingRepository: MatchingRepository,
) : MatchProfileUseCase {
override suspend operator fun invoke(
userId: String,
targetCode: String,
): MatchingResult = matchingRepository.matchProfile(userId, targetCode)
}
class DefaultMatchProfileUseCase
@Inject
constructor(
private val matchingRepository: MatchingRepository,
) : MatchProfileUseCase {
override suspend operator fun invoke(
userId: String,
targetCode: String,
): Matching = matchingRepository.matchProfile(userId, targetCode)
}

fun interface MatchProfileUseCase {
suspend operator fun invoke(
userId: String,
targetCode: String,
): MatchingResult
): Matching
}

0 comments on commit cd26dfc

Please sign in to comment.