# RetrofitDemo **Repository Path**: hongchen567/RetrofitDemo ## Basic Information - **Project Name**: RetrofitDemo - **Description**: retrofit网络请求框架测试 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-09-22 - **Last Updated**: 2023-07-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README /** * 号称Android最强大的网络请求框架 retrofit2,的一个接口 *

* 这个类的意义 也是非常重要的 *

* 这个接口是将这个app 所有页面的 网络请求 都定义到这里, * 实现网络请求的统一管理 *

*

*

* 用法: * get请求 要使用 GET的注解 并且配上后面的目录 如 根网址/toutiao/index 那么这里要配上toutiao/index * Query代表的是上传的参数 *

* 如果你不会可以完全参照一个列子 即可,其他的都是一样的写法 * * @GET("toutiao/index") Call getNewsBeanList(@Query("type") String type, @Query("key") String key); */ http://mvnrepository.com/artifact/com.squareup.retrofit2/converter-gson/2.3.0