41 lines
798 B
Swift
41 lines
798 B
Swift
//
|
|
// ScheduleViewedVM.swift
|
|
// QuickLocation
|
|
//
|
|
// Created by 八条 on 2026/6/26.
|
|
//
|
|
|
|
import RxSwift
|
|
import RxCocoa
|
|
import RxDataSources
|
|
import ObjectMapper
|
|
|
|
struct ScheduleViewedViewModel {
|
|
|
|
struct Output {
|
|
var sectionedItems: Observable<[ViewedListSectionModel]>
|
|
}
|
|
|
|
let output: Output
|
|
|
|
private let sectionedItems = PublishSubject<[ViewedListSectionModel]>()
|
|
|
|
lazy var cellAction: Action<ViewedModel, Void> = { this in
|
|
return Action { model in
|
|
|
|
return .empty()
|
|
}
|
|
}(self)
|
|
|
|
func loadViewedData(_ list: [ViewedModel]) {
|
|
sectionedItems.onNext(list.mapSection())
|
|
}
|
|
|
|
// MARK: - init
|
|
init() {
|
|
output = Output(
|
|
sectionedItems: sectionedItems
|
|
)
|
|
}
|
|
}
|