coin -> can 으로 변경

This commit is contained in:
Klaus 2023-08-13 20:24:48 +09:00
parent c8764be69f
commit 4bf8617102
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ import org.springframework.transaction.annotation.Transactional
@Service
class AudioContentDonationService(
private val coinPaymentService: CanPaymentService,
private val canPaymentService: CanPaymentService,
private val queryRepository: AudioContentRepository,
private val commentRepository: AudioContentCommentRepository
) {
@ -24,7 +24,7 @@ class AudioContentDonationService(
val audioContent = queryRepository.findByIdAndActive(request.contentId)
?: throw SodaException("잘못된 콘텐츠 입니다.\n다시 시도해 주세요.")
coinPaymentService.spendCan(
canPaymentService.spendCan(
memberId = member.id!!,
needCan = request.donationCan,
canUsage = CanUsage.DONATION,

View File

@ -17,7 +17,7 @@ import java.time.LocalDateTime
@Transactional(readOnly = true)
class OrderService(
private val repository: OrderRepository,
private val coinPaymentService: CanPaymentService,
private val canPaymentService: CanPaymentService,
private val audioContentRepository: AudioContentRepository,
private val audioContentCommentQueryRepository: AudioContentCommentRepository,
private val audioContentLikeQueryRepository: AudioContentLikeRepository,
@ -42,7 +42,7 @@ class OrderService(
repository.save(order)
coinPaymentService.spendCan(
canPaymentService.spendCan(
memberId = member.id!!,
needCan = order.can,
canUsage = CanUsage.ORDER_CONTENT,