传入Api.getApiService().login(map)
request(Api.getApiService().login(map), new OnRespListener<LoginBean>() {
@Override
public void onSuccess(LoginBean value) {
if(value.getCode() == 200){
getV().loginSuccess(value);
}else{
getV().loginFail(value.getMsg());
}
}
@Override
public void onFailed(Throwable e) {
getV().onError(e);
}
});
---------------------