package com.grkj.iscs_mc.view.presenter

import com.grkj.iscs_mc.model.vo.material.MaterialInstructionListRespVO
import com.grkj.iscs_mc.util.Executor
import com.grkj.iscs_mc.util.NetApi
import com.grkj.iscs_mc.view.base.BasePresenter
import com.grkj.iscs_mc.view.iview.IMaterialInstructionView

class MaterialInstructionPresenter : BasePresenter<IMaterialInstructionView>() {

    fun getMaterialInstructionList(callBack: (MutableList<MaterialInstructionListRespVO>?) -> Unit) {
        NetApi.getMaterialInstructionList {
            Executor.runOnMain {
                callBack(it)
            }
        }
    }
}