coin -> can 으로 변경

This commit is contained in:
2023-08-13 19:47:28 +09:00
parent c9970ce7ca
commit c8764be69f
11 changed files with 22 additions and 22 deletions

View File

@@ -58,7 +58,7 @@ class ExplorerQueryRepository(
creatorId: Long,
limit: Long,
offset: Long = 0,
withDonationCoin: Boolean
withDonationCan: Boolean
): List<MemberDonationRankingResponse> {
val creator = QMember("creator")
val member = QMember("user")
@@ -82,7 +82,7 @@ class ExplorerQueryRepository(
.fetch()
.map {
val account = it.get(member)!!
val donationCoin = it.get(donation)!!
val donationCan = it.get(donation)!!
MemberDonationRankingResponse(
account.id!!,
account.nickname,
@@ -91,7 +91,7 @@ class ExplorerQueryRepository(
} else {
"$cloudFrontHost/profile/default-profile.png"
},
if (withDonationCoin) donationCoin else 0
if (withDonationCan) donationCan else 0
)
}
}

View File

@@ -4,5 +4,5 @@ data class MemberDonationRankingResponse(
val userId: Long,
val nickname: String,
val profileImage: String,
val donationCoin: Int
val donationCan: Int
)