feat(profile): 카카오 오픈채팅 URL 필드로 프로필 응답과 수정을 통일한다
This commit is contained in:
@@ -305,8 +305,7 @@ class MemberService(
|
||||
instagramUrl = member.instagramUrl,
|
||||
fancimmUrl = member.fancimmUrl,
|
||||
xUrl = member.xUrl,
|
||||
websiteUrl = member.websiteUrl,
|
||||
blogUrl = member.blogUrl,
|
||||
kakaoOpenChatUrl = member.websiteUrl,
|
||||
liveReservationCount = liveReservationCount,
|
||||
isAuth = member.auth != null,
|
||||
orderList = orderList
|
||||
@@ -737,12 +736,8 @@ class MemberService(
|
||||
member.xUrl = profileUpdateRequest.xUrl
|
||||
}
|
||||
|
||||
if (profileUpdateRequest.websiteUrl != null) {
|
||||
member.websiteUrl = profileUpdateRequest.websiteUrl
|
||||
}
|
||||
|
||||
if (profileUpdateRequest.blogUrl != null) {
|
||||
member.blogUrl = profileUpdateRequest.blogUrl
|
||||
if (profileUpdateRequest.kakaoOpenChatUrl != null) {
|
||||
member.websiteUrl = profileUpdateRequest.kakaoOpenChatUrl
|
||||
}
|
||||
|
||||
if (profileUpdateRequest.isVisibleDonationRank != null) {
|
||||
|
||||
@@ -12,8 +12,7 @@ data class ProfileResponse(
|
||||
val instagramUrl: String?,
|
||||
val fancimmUrl: String?,
|
||||
val xUrl: String?,
|
||||
val blogUrl: String?,
|
||||
val websiteUrl: String?,
|
||||
val kakaoOpenChatUrl: String?,
|
||||
val introduce: String,
|
||||
val tags: List<String>
|
||||
) {
|
||||
@@ -33,8 +32,7 @@ data class ProfileResponse(
|
||||
instagramUrl = member.instagramUrl,
|
||||
fancimmUrl = member.fancimmUrl,
|
||||
xUrl = member.xUrl,
|
||||
websiteUrl = member.websiteUrl,
|
||||
blogUrl = member.blogUrl,
|
||||
kakaoOpenChatUrl = member.websiteUrl,
|
||||
introduce = member.introduce,
|
||||
tags = member.tags.asSequence().filter { it.tag.isActive }.map { it.tag.tag }.toList()
|
||||
)
|
||||
|
||||
@@ -13,8 +13,7 @@ data class ProfileUpdateRequest(
|
||||
val instagramUrl: String? = null,
|
||||
val fancimmUrl: String? = null,
|
||||
val xUrl: String? = null,
|
||||
val websiteUrl: String? = null,
|
||||
val blogUrl: String? = null,
|
||||
val kakaoOpenChatUrl: String? = null,
|
||||
val isVisibleDonationRank: Boolean? = null,
|
||||
val donationRankingPeriod: DonationRankingPeriod? = null,
|
||||
val container: String
|
||||
|
||||
@@ -12,8 +12,7 @@ data class MyPageResponse(
|
||||
val instagramUrl: String?,
|
||||
val fancimmUrl: String? = null,
|
||||
val xUrl: String? = null,
|
||||
val websiteUrl: String? = null,
|
||||
val blogUrl: String? = null,
|
||||
val kakaoOpenChatUrl: String? = null,
|
||||
val liveReservationCount: Int,
|
||||
val isAuth: Boolean,
|
||||
val orderList: GetAudioContentOrderListResponse
|
||||
|
||||
Reference in New Issue
Block a user