完善景区排队设置页与全局按钮配置迁移。
重构排队设置与变更日志交互,补充 Overlay 与资源,并将多页面主操作按钮统一到 UIButton Configuration,同步更新相关单元测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -28,13 +28,13 @@ final class WildReportSupplementEvidenceViewController: BaseViewController {
|
||||
init(
|
||||
record: WildReportRecord,
|
||||
homeViewModel: WildPhotographerReportHomeViewModel,
|
||||
api: any WildPhotographerReportServing = NetworkServices.shared.wildPhotographerReportAPI,
|
||||
uploader: any WildReportAttachmentUploading = NetworkServices.shared.ossUploadService,
|
||||
api: (any WildPhotographerReportServing)? = nil,
|
||||
uploader: (any WildReportAttachmentUploading)? = nil,
|
||||
onSupplementSuccess: (() -> Void)? = nil
|
||||
) {
|
||||
self.viewModel = WildReportSupplementEvidenceViewModel(record: record, homeViewModel: homeViewModel)
|
||||
self.api = api
|
||||
self.uploader = uploader
|
||||
self.api = api ?? NetworkServices.shared.wildPhotographerReportAPI
|
||||
self.uploader = uploader ?? NetworkServices.shared.ossUploadService
|
||||
self.onSupplementSuccess = onSupplementSuccess
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user