@@ -85,7 +85,7 @@ open class Cute<EndPoint: EndPointType>: NSObject, NetworkRouter, URLSessionDele
85
85
//MARK: - Cute + Upload
86
86
extension Cute {
87
87
/// - petitUpload(_ root: EndPoint, image: UIImage, fileName: String, imageType: String, petitLogVisible: Bool) async throws -> Data 함수를 래핑
88
- open func petitUpload< T: Decodable > ( _ root: EndPoint , imageType: ImageInfomation , petitLogVisible: Bool = true ) async throws -> T {
88
+ open func petitUpload< T: Decodable > ( _ root: EndPoint , imageType: ImageInformation , petitLogVisible: Bool = true ) async throws -> T {
89
89
do {
90
90
let result = try await petitUpload ( root,
91
91
imageType: imageType,
@@ -103,7 +103,7 @@ extension Cute {
103
103
}
104
104
}
105
105
/// - petitUpload(_ route: EndPoint, image: UIImage, fileName: String, imageType: String, logAccess: Bool, completion: @escaping NetworkRouterCompletion) 함수를 래핑
106
- open func petitUpload( _ root: EndPoint , imageType: ImageInfomation , petitLogVisible: Bool ) async throws -> Data {
106
+ open func petitUpload( _ root: EndPoint , imageType: ImageInformation , petitLogVisible: Bool ) async throws -> Data {
107
107
return try await withCheckedThrowingContinuation ( { value in
108
108
petitUpload ( root,
109
109
imageType: imageType,
@@ -132,7 +132,7 @@ extension Cute {
132
132
} )
133
133
}
134
134
/// dataTask를 걸친 데이터 까지 넘겨주는 역할
135
- open func petitUpload( _ route: EndPoint , imageType: ImageInfomation , logAccess: Bool , completion: @escaping NetworkRouterCompletion ) {
135
+ open func petitUpload( _ route: EndPoint , imageType: ImageInformation , logAccess: Bool , completion: @escaping NetworkRouterCompletion ) {
136
136
guard Reachability . isConnectedToNetwork ( ) else {
137
137
completion ( nil , nil , NetworkError . noConnectionToInternet)
138
138
return
@@ -176,7 +176,7 @@ extension Cute {
176
176
return request
177
177
}
178
178
179
- fileprivate func createMultipartBody( _ boundary: String , _ imageType: ImageInfomation ) -> Data {
179
+ fileprivate func createMultipartBody( _ boundary: String , _ imageType: ImageInformation ) -> Data {
180
180
let boundaryPrefix = " -- \( boundary) \r \n "
181
181
var uploadData = Data ( )
182
182
if let data = imageType. image. jpegData ( compressionQuality: 0.8 ) {
0 commit comments