外部市局解析及处理逻辑
VerificationCodeBean
private String code;private String codeMsg;
+ operation1(params):returnType- operation2(params)- operation3()
LoginConstract
- LoginView extends BaseView- interface LoginPresenter extends BasePresenter
基类
UserInfoBean
private String code; private String codeMsg; private String data; private String serviceId; private Context context;
外部接入初始数据类
BaseView
- showLoading(Stirng text);- hideLoading();- showError(String errorMsg);
实现
内部接口
LoginPresenterImpl
+ attribute1:type = defaultValue+ attribute2:type- attribute3:type
OutConfig
private String serviceId;//业务线ID private String sourceId;//商家状态 private String userId; private boolean isLogined; private LoginConstract.LoginView mView;
//点击事件集合 interface ClickListener{ void start(Context context); }
LoginView
+ operation1(params):returnType- showError(String errorMsg)- showImage(String imagePath);+ String getMobile();+ String getCode();+ String getProtocolName();+ boolean showSigin();+ boolean showQrScan();- setBtnEnable(boolean isEnable);- setCode(String code);
ParseOutConfig
契约类
BaseModel
- T netBean();- T dbBean();
LoginPresenter
LoginActivity
HttpLibrary 网络库底层ok
BasePresenter