feat(creator-channel): 채널 상세조회 응답값에 최신 콘텐츠, 전체 콘텐츠 수, 구매한 콘텐츠 수 추가
This commit is contained in:
@@ -13,6 +13,9 @@ struct GetCreatorProfileResponse: Decodable {
|
|||||||
let similarCreatorList: [SimilarCreatorResponse]
|
let similarCreatorList: [SimilarCreatorResponse]
|
||||||
let liveRoomList: [LiveRoomResponse]
|
let liveRoomList: [LiveRoomResponse]
|
||||||
let contentList: [GetAudioContentListItem]
|
let contentList: [GetAudioContentListItem]
|
||||||
|
let latestContent: GetAudioContentListItem?
|
||||||
|
let totalContentCount: Int
|
||||||
|
let ownedContentCount: Int
|
||||||
let notice: String
|
let notice: String
|
||||||
let communityPostList: [GetCommunityPostListResponse]
|
let communityPostList: [GetCommunityPostListResponse]
|
||||||
let cheers: GetCheersResponse
|
let cheers: GetCheersResponse
|
||||||
|
|||||||
@@ -71,10 +71,6 @@ struct UserProfileView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if creatorProfile.isCreatorRole {
|
if creatorProfile.isCreatorRole {
|
||||||
UserProfileActivitySummaryView(item: creatorProfile.activitySummary)
|
|
||||||
.padding(.top, 13.3)
|
|
||||||
.padding(.horizontal, 13.3)
|
|
||||||
|
|
||||||
if viewModel.communityPostList.count > 0 {
|
if viewModel.communityPostList.count > 0 {
|
||||||
ScrollView(.horizontal, showsIndicators: false) {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
LazyHStack(spacing: 13.3) {
|
LazyHStack(spacing: 13.3) {
|
||||||
@@ -203,20 +199,6 @@ struct UserProfileView: View {
|
|||||||
.padding(.horizontal, 13.3)
|
.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 {
|
if creatorProfile.userDonationRanking.count > 0 {
|
||||||
VStack(spacing: 26.7) {
|
VStack(spacing: 26.7) {
|
||||||
UserProfileDonationView(userId: userId, donationRankingResponse: creatorProfile.userDonationRanking)
|
UserProfileDonationView(userId: userId, donationRankingResponse: creatorProfile.userDonationRanking)
|
||||||
|
|||||||
Reference in New Issue
Block a user