Retrofit with okhttp
封装接口
首先,我们将将请求api封装成一个接口(interface), Retrofit 通过这个定义的interface生成一个具体的实现。
在interface中进行接口api的定义,比如
1 | public interface RepoService { |
首先,我们将将请求api封装成一个接口(interface), Retrofit 通过这个定义的interface生成一个具体的实现。
在interface中进行接口api的定义,比如
1 | public interface RepoService { |