package com.bawei.demo.presenter;
import com.bawei.demo.model.Constant;
import com.bawei.demo.model.bean.LogBean;
import com.bawei.demo.model.http.HttpUtil;
import com.bawei.demo.view.IBaseView;
import com.bawei.demo.view.User;
import java.util.HashMap;
/**
-
作者: 姓名
-
日期: 2019/7/20 17:30
*/
public class ReginPresenter extends Basepresenter<User.IReginView> implements IBaseView {
private final HttpUtil instance;public ReginPresenter(){
instance = HttpUtil.getInstance();
}
public void regin(HashMap<String, String> maps) {
instance.getDate(Constant.Reg, new HttpUtil.CallBack() {
@Override
public void success(LogBean bean) {
getView().zhuce(bean);
}
},LogBean.class,maps);
}
}