feat(drone-dock): 接入成片云端交付并精简准备页定位展示

This commit is contained in:
2026-10-29 10:24:45 +08:00
parent 88fa1f9b77
commit 4d763ef5d1
29 changed files with 2870 additions and 100 deletions
@@ -0,0 +1,17 @@
import UIKit
/// 订单列表与素材库共用的真实成片交付页面工厂。
@MainActor
enum DroneDockDeliveryEntry {
/// 同时传递订单与可选任务,进入页面后重新校验当前身份和上传权限。
static func makeController(order: DroneDockHomeOrder, context: DroneDockHomeContext, taskID: Int?) -> UIViewController {
let client = NetworkServices.shared.apiClient
return DroneDockDeliveryViewController(viewModel: DroneDockDeliveryViewModel(
context: context, order: order,
service: DroneDockDeliveryAPI(client: client),
uploader: DroneDockFilmUploader(configService: UploadAPI(client: client)),
initialTaskID: taskID,
currentContext: { DroneDockHomeViewController.currentContext() }
))
}
}