콘텐츠 메인, 콘텐츠 업로드 페이지 추가

This commit is contained in:
Yu Sung
2023-08-11 08:47:10 +09:00
parent 64b0380671
commit a167840162
33 changed files with 2190 additions and 1 deletions

View File

@@ -0,0 +1,50 @@
//
// GetAudioContentDetailResponse.swift
// SodaLive
//
// Created by klaus on 2023/08/11.
//
import Foundation
struct GetAudioContentDetailResponse: Decodable {
let contentId: Int
let title: String
let detail: String
let coverImageUrl: String
let contentUrl: String
let themeStr: String
let tag: String
let price: Int
let duration: String
let isAdult: Bool
let isMosaic: Bool
let existOrdered: Bool
let orderType: OrderType?
let remainingTime: String?
let creatorOtherContentList: [OtherContentResponse]
let sameThemeOtherContentList: [OtherContentResponse]
let isCommentAvailable: Bool
let isLike: Bool
let likeCount: Int
let commentList: [GetAudioContentCommentListItem]
let commentCount: Int
let creator: AudioContentCreator
}
enum OrderType: String, Codable {
case RENTAL, KEEP
}
struct OtherContentResponse: Decodable {
let contentId: Int
let title: String
let coverUrl: String
}
struct AudioContentCreator: Decodable {
let creatorId: Int
let nickname: String
let profileImageUrl: String
let isFollowing: Bool
}