Skip to content

Commit a2562b9

Browse files
committed
[Chore] #192 - PhotoUploadMethod 케이스에 맞춰 수정
1 parent 4a1a0a5 commit a2562b9

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

Neki-iOS/Features/Archive/Sources/Domain/Sources/Interfaces/Repositories/ArchiveRepository.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ protocol ArchiveRepository: Sendable {
3232

3333
public enum PhotoUploadMethod: String, Sendable {
3434
case qr = "QR"
35-
case gallery = "GALLERY"
36-
case share = "SHARE"
35+
case direct = "DIRECT_UPLOAD"
3736
}

Neki-iOS/Features/Archive/Sources/Presentation/Sources/Feature/ArchiveAlbumDetailFeature.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ struct ArchiveAlbumDetailFeature {
151151
await send(.registerPhotosResponse(
152152
Result {
153153
let mediaIds = try await imageUploadClient.upload(entities, .photoBooth)
154-
let uploads = mediaIds.map { (mediaID: $0, memo: String?.none, uploadMethod: PhotoUploadMethod.qr) }
154+
let uploads = mediaIds.map { (mediaID: $0, memo: String?.none, uploadMethod: PhotoUploadMethod.direct) }
155155
try await archiveClient.registerPhotos(folderId: albumId, uploads: uploads ,favorite: false)
156156
}
157157
))

Neki-iOS/Features/Archive/Sources/Presentation/Sources/Feature/ArchiveFavoriteAlbumFeature.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ struct ArchiveFavoriteAlbumFeature {
134134
await send(.registerPhotosResponse(
135135
Result {
136136
let mediaIds = try await imageUploadClient.upload(entities, .photoBooth)
137-
let uploads = mediaIds.map { (mediaID: $0, memo: String?.none, uploadMethod: PhotoUploadMethod.qr) }
137+
let uploads = mediaIds.map { (mediaID: $0, memo: String?.none, uploadMethod: PhotoUploadMethod.direct) }
138138
try await archiveClient.registerPhotos(folderId: nil, uploads: uploads, favorite: true)
139139
}
140140
))

Neki-iOS/Features/Archive/Sources/Presentation/Sources/Feature/SelectUploadAlbumFeature.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ struct SelectUploadAlbumFeature {
7777
await send(.uploadResponse(
7878
Result {
7979
let mediaIds = try await imageUploadClient.upload(entities, .photoBooth)
80-
let uploads = mediaIds.map { (mediaID: $0, memo: String?.none, uploadMethod: PhotoUploadMethod.qr) }
80+
let uploads = mediaIds.map { (mediaID: $0, memo: String?.none, uploadMethod: PhotoUploadMethod.direct) }
8181
try await archiveClient.registerPhotos(folderId: albumId, uploads: uploads, favorite: false)
8282
return albumId
8383
}

0 commit comments

Comments
 (0)