coin -> can 으로 변경
This commit is contained in:
parent
c8764be69f
commit
4bf8617102
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue