재생목록 플레이어 추가

This commit is contained in:
Yu Sung
2024-12-17 23:13:19 +09:00
parent 9ca1493255
commit c3e60bd92c
21 changed files with 829 additions and 8 deletions

View File

@@ -37,6 +37,7 @@ enum ContentApi {
case pinContent(contentId: Int)
case unpinContent(contentId: Int)
case getAudioContentByTheme(themeId: Int, isAdultContentVisible: Bool, contentType: ContentType, page: Int, size: Int, sort: ContentAllByThemeViewModel.Sort)
case generateUrl(contentId: Int)
}
extension ContentApi: TargetType {
@@ -129,6 +130,9 @@ extension ContentApi: TargetType {
case .getAudioContentByTheme(let themeId, _, _, _, _, _):
return "/audio-content/theme/\(themeId)/content"
case .generateUrl(let contentId):
return "/audio-content/\(contentId)/generate-url"
}
}
@@ -137,7 +141,7 @@ extension ContentApi: TargetType {
case .getAudioContentList, .getAudioContentDetail, .getOrderList, .getAudioContentThemeList,
.getAudioContentCommentList, .getAudioContentCommentReplyList, .getNewContentOfTheme,
.getNewContentThemeList, .getNewContentAllOfTheme, .getAudioContentListByCurationId, .getContentRanking,
.getContentRankingSortType:
.getContentRankingSortType, .generateUrl:
return .get
case .getMainBannerList, .getMainOrderList, .getNewContentUploadCreatorList, .getCurationList, .getAudioContentByTheme:
@@ -195,7 +199,7 @@ extension ContentApi: TargetType {
case .addAllPlaybackTracking(let request):
return .requestJSONEncodable(request)
case .getAudioContentThemeList, .getMainBannerList, .getMainOrderList, .getNewContentUploadCreatorList:
case .getAudioContentThemeList, .getMainBannerList, .getMainOrderList, .getNewContentUploadCreatorList, .generateUrl:
return .requestPlain
case .uploadAudioContent(let parameters):