# RetrofitSample **Repository Path**: ZhangQQ_123/RetrofitSample ## Basic Information - **Project Name**: RetrofitSample - **Description**: 使用注解、动态代理、反射简单实现retrofit框架 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-10-07 - **Last Updated**: 2021-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # RetrofitSample #### 介绍 使用注解、代理、反射简单实现retrofit框架 #### 使用说明 ``` public interface API { @POST("/v3/weather/weatherInfo") Call postWeather(@FIELD("city") String city, @FIELD("key") String key); @GET("/v3/weather/weatherInfo") Call getWeather(@QUERY("city") String city, @QUERY("key") String key); } ``` ![](https://gitee.com/ZhangQQ_123/RetrofitSample/raw/master/pic/Screenshot_1602062737.png) ![](https://gitee.com/ZhangQQ_123/RetrofitSample/raw/master/pic/Screenshot_1602062745.png)