coin -> can 으로 변경
This commit is contained in:
parent
c8764be69f
commit
4bf8617102
|
@ -12,7 +12,7 @@ import org.springframework.transaction.annotation.Transactional
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
class AudioContentDonationService(
|
class AudioContentDonationService(
|
||||||
private val coinPaymentService: CanPaymentService,
|
private val canPaymentService: CanPaymentService,
|
||||||
private val queryRepository: AudioContentRepository,
|
private val queryRepository: AudioContentRepository,
|
||||||
private val commentRepository: AudioContentCommentRepository
|
private val commentRepository: AudioContentCommentRepository
|
||||||
) {
|
) {
|
||||||
|
@ -24,7 +24,7 @@ class AudioContentDonationService(
|
||||||
val audioContent = queryRepository.findByIdAndActive(request.contentId)
|
val audioContent = queryRepository.findByIdAndActive(request.contentId)
|
||||||
?: throw SodaException("잘못된 콘텐츠 입니다.\n다시 시도해 주세요.")
|
?: throw SodaException("잘못된 콘텐츠 입니다.\n다시 시도해 주세요.")
|
||||||
|
|
||||||
coinPaymentService.spendCan(
|
canPaymentService.spendCan(
|
||||||
memberId = member.id!!,
|
memberId = member.id!!,
|
||||||
needCan = request.donationCan,
|
needCan = request.donationCan,
|
||||||
canUsage = CanUsage.DONATION,
|
canUsage = CanUsage.DONATION,
|
||||||
|
|
|
@ -17,7 +17,7 @@ import java.time.LocalDateTime
|
||||||
@Transactional(readOnly = true)
|
@Transactional(readOnly = true)
|
||||||
class OrderService(
|
class OrderService(
|
||||||
private val repository: OrderRepository,
|
private val repository: OrderRepository,
|
||||||
private val coinPaymentService: CanPaymentService,
|
private val canPaymentService: CanPaymentService,
|
||||||
private val audioContentRepository: AudioContentRepository,
|
private val audioContentRepository: AudioContentRepository,
|
||||||
private val audioContentCommentQueryRepository: AudioContentCommentRepository,
|
private val audioContentCommentQueryRepository: AudioContentCommentRepository,
|
||||||
private val audioContentLikeQueryRepository: AudioContentLikeRepository,
|
private val audioContentLikeQueryRepository: AudioContentLikeRepository,
|
||||||
|
@ -42,7 +42,7 @@ class OrderService(
|
||||||
|
|
||||||
repository.save(order)
|
repository.save(order)
|
||||||
|
|
||||||
coinPaymentService.spendCan(
|
canPaymentService.spendCan(
|
||||||
memberId = member.id!!,
|
memberId = member.id!!,
|
||||||
needCan = order.can,
|
needCan = order.can,
|
||||||
canUsage = CanUsage.ORDER_CONTENT,
|
canUsage = CanUsage.ORDER_CONTENT,
|
||||||
|
|
Loading…
Reference in New Issue