콘텐츠 수정 request data 이름 변경 - audioContentId -> contentId
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung