package com.zxbw.modulemain.presenter

import com.zxbw.modulemain.contract.SearchContract

class SearchPresenter : SearchContract.Presenter {
    private val mView: SearchContract.View


    constructor(mView: SearchContract.View) {
        this.mView = mView
    }

    override fun getSearchHistory() {
        mView.setSearchHistory()
    }

    override fun getBestGoodsList() {
//        ApiClient.shopApi.getShopHotProducts()
//            .compose(RxSchedulers.observableIO2Main())
//            .subscribe(object : BaseObserver<List<ShopListEntity>>() {
//                override fun onSuccess(result: List<ShopListEntity>?) {
//                    mView.setBestGoodsList(result)
//                }
//
//                override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
//                    mView.setBestGoodsList(null)
//                }
//            })
    }

}