feat: add travel album module

This commit is contained in:
2026-07-07 17:23:31 +08:00
parent a80c181bd7
commit 00bda390e8
16 changed files with 3115 additions and 0 deletions

View File

@ -0,0 +1,36 @@
//
// WiredCameraTransferViewModel.swift
// suixinkan
//
import Foundation
/// 线 ViewModel UI OTG
final class WiredCameraTransferViewModel {
let albumId: Int
let albumTitle: String
let headerPhone: String
let scenicSpotLabel: String?
let cameraStatusText = "未连接 USB"
let actionButtonText = "等待连接"
let deviceModelName = "设备存储"
let availableStorageText = "-- GB 可用"
let retouchOption = "不修图"
let photoFormatOption = "JPG"
let transferModeOption = "边拍边传"
let tabCounts = [0, 0, 0]
var onShowMessage: ((String) -> Void)?
init(albumId: Int, albumTitle: String, headerPhone: String, scenicSpotLabel: String? = nil) {
self.albumId = albumId
self.albumTitle = albumTitle.isEmpty ? "有线传输" : albumTitle
self.headerPhone = headerPhone
self.scenicSpotLabel = scenicSpotLabel
}
/// UI
func showUIOnlyMessage() {
onShowMessage?("仅同步 UI暂未接入 OTG 传输")
}
}