...
|
...
|
@@ -2,12 +2,13 @@ package com.br_technology.securitytrain_master.ui.view.bank.repository |
|
|
|
|
|
import androidx.lifecycle.MutableLiveData
|
|
|
import com.br_technology.securitytrain_master.base.common.State
|
|
|
import com.br_technology.securitytrain_master.base.network.response.BaseResponse
|
|
|
import com.br_technology.securitytrain_master.base.network.response.CommonList
|
|
|
import com.br_technology.securitytrain_master.base.repository.ApiRepository
|
|
|
import com.br_technology.securitytrain_master.ui.bean.AnswerAbout
|
|
|
import com.br_technology.securitytrain_master.ui.view.bank.bean.PracticeBean
|
|
|
import com.br_technology.securitytrain_master.ui.view.home.bean.WorkTypeBean
|
|
|
import com.wjx.android.wanandroidmvvm.base.observer.BaseObserver
|
|
|
import com.br_technology.securitytrain_master.base.network.response.BaseResponse
|
|
|
import com.br_technology.securitytrain_master.base.network.response.CommonList
|
|
|
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
|
|
import io.reactivex.rxjava3.schedulers.Schedulers
|
|
|
|
...
|
...
|
@@ -33,6 +34,11 @@ class BankRepository(val loadState: MutableLiveData<State>): ApiRepository(loadS |
|
|
|
|
|
}
|
|
|
|
|
|
//答题相关参数
|
|
|
fun getAnswerAbout(liveData: MutableLiveData<BaseResponse<AnswerAbout>>) {
|
|
|
addRequest(apiService.itemAbout(), liveData)
|
|
|
}
|
|
|
|
|
|
fun practiceList(
|
|
|
pos_id : Int,
|
|
|
page : Int,
|
...
|
...
|
|