feat(creator-channel): 채널 상세조회 응답값에 최신 콘텐츠, 전체 콘텐츠 수, 구매한 콘텐츠 수 추가

This commit is contained in:
Yu Sung
2025-10-17 00:34:50 +09:00
parent d1dcbfbd86
commit 667195bd64
2 changed files with 3 additions and 18 deletions

View File

@@ -13,6 +13,9 @@ struct GetCreatorProfileResponse: Decodable {
let similarCreatorList: [SimilarCreatorResponse]
let liveRoomList: [LiveRoomResponse]
let contentList: [GetAudioContentListItem]
let latestContent: GetAudioContentListItem?
let totalContentCount: Int
let ownedContentCount: Int
let notice: String
let communityPostList: [GetCommunityPostListResponse]
let cheers: GetCheersResponse

View File

@@ -71,10 +71,6 @@ struct UserProfileView: View {
}
if creatorProfile.isCreatorRole {
UserProfileActivitySummaryView(item: creatorProfile.activitySummary)
.padding(.top, 13.3)
.padding(.horizontal, 13.3)
if viewModel.communityPostList.count > 0 {
ScrollView(.horizontal, showsIndicators: false) {
LazyHStack(spacing: 13.3) {
@@ -203,20 +199,6 @@ struct UserProfileView: View {
.padding(.horizontal, 13.3)
}
VStack(spacing: 26.7) {
let introduce = creatorProfile.creator.introduce
UserProfileIntroduceView(
introduce: introduce.trimmingCharacters(in: .whitespaces).count <= 0 ?
"채널 소개내용이 없습니다." :
introduce)
Rectangle()
.frame(height: 1)
.foregroundColor(Color(hex: "909090").opacity(0.5))
.padding(.horizontal, 13.3)
}
.padding(.top, 26.7)
if creatorProfile.userDonationRanking.count > 0 {
VStack(spacing: 26.7) {
UserProfileDonationView(userId: userId, donationRankingResponse: creatorProfile.userDonationRanking)