후원랭킹 기간 선택 반영
프로필 업데이트에 후원랭킹 기간 선택을 추가하고 프로필 후원랭킹 조회가 선택한 기간을 사용한다
This commit is contained in:
@@ -47,6 +47,9 @@ data class Member(
|
||||
|
||||
var isVisibleDonationRank: Boolean = true,
|
||||
|
||||
@Enumerated(value = EnumType.STRING)
|
||||
var donationRankingPeriod: DonationRankingPeriod? = DonationRankingPeriod.CUMULATIVE,
|
||||
|
||||
var isActive: Boolean = true,
|
||||
|
||||
var container: String = "web",
|
||||
@@ -178,3 +181,7 @@ enum class MemberRole {
|
||||
enum class MemberProvider {
|
||||
EMAIL, KAKAO, GOOGLE, APPLE, LINE
|
||||
}
|
||||
|
||||
enum class DonationRankingPeriod {
|
||||
WEEKLY, CUMULATIVE
|
||||
}
|
||||
|
||||
@@ -726,6 +726,10 @@ class MemberService(
|
||||
member.isVisibleDonationRank = profileUpdateRequest.isVisibleDonationRank
|
||||
}
|
||||
|
||||
if (profileUpdateRequest.donationRankingPeriod != null) {
|
||||
member.donationRankingPeriod = profileUpdateRequest.donationRankingPeriod
|
||||
}
|
||||
|
||||
return ProfileResponse(member, cloudFrontHost, profileUpdateRequest.container)
|
||||
}
|
||||
|
||||
|
||||
@@ -14,5 +14,6 @@ data class ProfileUpdateRequest(
|
||||
val websiteUrl: String? = null,
|
||||
val blogUrl: String? = null,
|
||||
val isVisibleDonationRank: Boolean? = null,
|
||||
val donationRankingPeriod: DonationRankingPeriod? = null,
|
||||
val container: String
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user