콘텐츠 메인, 콘텐츠 업로드 페이지 추가
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// GetAudioContentCommentListResponse.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/11.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct GetAudioContentCommentListResponse: Decodable {
|
||||
let totalCount: Int
|
||||
let items: [GetAudioContentCommentListItem]
|
||||
}
|
||||
|
||||
struct GetAudioContentCommentListItem: Decodable {
|
||||
let id: Int
|
||||
let writerId: Int
|
||||
let nickname: String
|
||||
let profileUrl: String
|
||||
let comment: String
|
||||
let donationCoin: Int
|
||||
let date: String
|
||||
let replyCount: Int
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// RegisterAudioContentCommentRequest.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/11.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct RegisterAudioContentCommentRequest: Encodable {
|
||||
let comment: String
|
||||
let audioContentId: Int
|
||||
let parentId: Int?
|
||||
}
|
@@ -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
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// PutAudioContentLikeRequest.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/11.
|
||||
//
|
||||
|
||||
struct PutAudioContentLikeRequest: Encodable {
|
||||
let audioContentId: Int
|
||||
}
|
||||
|
||||
struct PutAudioContentLikeResponse: Decodable {
|
||||
let like: Bool
|
||||
}
|
Reference in New Issue
Block a user