콘텐츠 수정 request data 이름 변경 - audioContentId -> contentId
This commit is contained in:
parent
65b43e4c0d
commit
828c507742
|
@ -74,6 +74,6 @@ final class ContentRepository {
|
|||
}
|
||||
|
||||
func donation(contentId: Int, can: Int, comment: String) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.donation(request: AudioContentDonationRequest(audioContentId: contentId, donationCan: can, comment: comment)))
|
||||
return api.requestPublisher(.donation(request: AudioContentDonationRequest(contentId: contentId, donationCan: can, comment: comment)))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ final class ContentModifyViewModel: ObservableObject {
|
|||
isLoading = true
|
||||
|
||||
let request = ModifyContentRequest(
|
||||
audioContentId: contentId,
|
||||
contentId: contentId,
|
||||
title: title != audioContent!.title ? title : nil,
|
||||
detail: detail != audioContent!.detail ? detail : nil,
|
||||
isAdult: isAdult,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
|
||||
struct ModifyContentRequest: Encodable {
|
||||
let audioContentId: Int
|
||||
let contentId: Int
|
||||
let title: String?
|
||||
let detail: String?
|
||||
let isAdult: Bool
|
||||
|
|
Loading…
Reference in New Issue