Giter Club home page Giter Club logo

Comments (3)

JessYanCoding avatar JessYanCoding commented on July 21, 2024 4

@zhjun2016 关于动态改变 BaseUrl,可以使用 RetrofitUrlManager 随意切换任何复杂的 BaseUrl, 正如作者所说,关于错误码之类涉及到服务器和业务,所以不可能封装,而且这也是学习项目不是框架,如果你在寻找一个好用的 MVP 框架的话,可以试试 MVPArms,里面有对服务器错误以及使用 Rxjava 遇到的错误进行集中反馈的功能

from kotlinmvp.

zhjun2016 avatar zhjun2016 commented on July 21, 2024

以及对baseUrl动态改变

from kotlinmvp.

git-xuhao avatar git-xuhao commented on July 21, 2024

@zhjun2016 基类 BaseBean 需要怎么封装?基类错误码指的是 API 错误码吗?这个需要和后台沟通定义的,统一解析 Bean,BaseResponse 这个不就是服务器返回响应的基类吗?BaseUrl 动态改变,可以自行添加拦截器实现,这是个开源项目,仅供参考学习,不是框架呢

from kotlinmvp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.