Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

转换器回调 不知道怎么和 retrofit结合,可否后续 结合请求框架直接统一处理返回值 #136

Open
xyZangGit opened this issue Jun 18, 2020 · 2 comments

Comments

@xyZangGit
Copy link

No description provided.

@KingJA
Copy link
Owner

KingJA commented Jun 19, 2020

@xyZangGit 你好,封装方式各人各异,目前我使用的是MVP模式,V层抽取出showLoading,showEmpty,showError等状态,集中到BaseActivity或者BaseFragment中管理。P层抽取出请求处理,分发到V层的各个状态。

@xyZangGit
Copy link
Author

@xyZangGit 你好,封装方式各人各异,目前我使用的是MVP模式,V层抽取出showLoading,showEmpty,showError等状态,集中到BaseActivity或者BaseFragment中管理。P层抽取出请求处理,分发到V层的各个状态。

可否把这一部分代码 写到demo里面,我看了一下我的代码,不知道怎么封装进去,都是每个view里面手动调用,感觉有点麻烦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants