//
|
// InvoiceHistoryViewModel.swift
|
// XWProject
|
//
|
// Created by Sweet on 2021/3/27.
|
// Copyright © 2021 yangwang. All rights reserved.
|
//
|
|
import UIKit
|
import RxSwift
|
import RxCocoa
|
class InvoiceHistoryViewModel: YYRefreshViewModel<InvoiceHistoryModel> {
|
override func api() -> API! {
|
return .queryMyInvoice(pageNum: currentPage, size: totalPages)
|
}
|
}
|
class InvtieFriendVCViewModel: YYRefreshViewModel<InviteModel> {
|
var type = BehaviorRelay<Int>.init(value: 1)
|
override func api() -> API! {
|
return .getInviteList(pageNum: currentPage, size: totalPages, type: type.value)
|
}
|
}
|