将本地存储与上传编排下沉到 Features/TravelAlbum,删除 USB/PTP 相关代码与测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
442 B
Swift
19 lines
442 B
Swift
//
|
||
// CameraAssetUploadSink.swift
|
||
// suixinkan
|
||
//
|
||
|
||
import Foundation
|
||
|
||
/// 本地照片上传登记入口,由旅拍相册模块实现 OSS 上传与后端登记。
|
||
@MainActor
|
||
protocol CameraAssetUploadSink: AnyObject {
|
||
/// 上传本地文件并返回远端 URL。
|
||
func upload(
|
||
localURL: URL,
|
||
fileName: String,
|
||
fileType: Int,
|
||
progress: @escaping @Sendable (Int) -> Void
|
||
) async throws -> String
|
||
}
|