Skip to content

Commit 02da36f

Browse files
authored
Merge pull request #7 from stealmh/fix-StructTypo
fix: Struct name 수정
2 parents 93d201a + dda26ae commit 02da36f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Sources/CuteNetwork/Cute.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ open class Cute<EndPoint: EndPointType>: NSObject, NetworkRouter, URLSessionDele
8585
//MARK: - Cute + Upload
8686
extension Cute {
8787
/// - 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 {
8989
do {
9090
let result = try await petitUpload(root,
9191
imageType: imageType,
@@ -103,7 +103,7 @@ extension Cute {
103103
}
104104
}
105105
/// - 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 {
107107
return try await withCheckedThrowingContinuation({ value in
108108
petitUpload(root,
109109
imageType: imageType,
@@ -132,7 +132,7 @@ extension Cute {
132132
})
133133
}
134134
/// 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) {
136136
guard Reachability.isConnectedToNetwork() else {
137137
completion(nil, nil, NetworkError.noConnectionToInternet)
138138
return
@@ -176,7 +176,7 @@ extension Cute {
176176
return request
177177
}
178178

179-
fileprivate func createMultipartBody(_ boundary: String, _ imageType: ImageInfomation) -> Data {
179+
fileprivate func createMultipartBody(_ boundary: String, _ imageType: ImageInformation) -> Data {
180180
let boundaryPrefix = "--\(boundary)\r\n"
181181
var uploadData = Data()
182182
if let data = imageType.image.jpegData(compressionQuality: 0.8) {

Sources/CuteNetwork/ImageInfomation.swift renamed to Sources/CuteNetwork/ImageInformation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//
2-
// ImageInfomation.swift
2+
// ImageInformation.swift
33
//
44
//
55
// Created by mino on 2024/01/03.
66
//
77

88
import UIKit
99

10-
public struct ImageInfomation {
10+
public struct ImageInformation {
1111
let imageName: String
1212
let imageType: String
1313
let image: UIImage

0 commit comments

Comments
 (0)