package com.remax.visualnovel.app.viewmodel.base

import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

/**
 * Created by HJW on 2022/10/28
 *
 * 钱包。支付相关父类
 */
@HiltViewModel
open class PayViewModel @Inject constructor() : BaseViewModel() {

//    @Inject
//    lateinit var walletRepository: WalletRepository
//
//    @Inject
//    lateinit var payRepository: PayRepository
//
//    private val _walletFlow = MutableSharedFlow<Response<Wallet>>()
//    val walletFlow = _walletFlow.asSharedFlow()
//
//    suspend fun getMyWallet(): Response<Wallet> {
//        return walletRepository.getMyWallet().apply { _walletFlow.emit(this) }
//    }
//
//    suspend fun checkOut(tradeNo: String) = payRepository.checkOut(tradeNo)
}