/EasyOKHttp

Primary LanguageJavaApache License 2.0Apache-2.0

EasyOKHttp

dependencies {
            annotationProcessor 'com.msx7.andriod:aptokhttp:0.1.4'
            implementation 'com.msx7.andriod:commons:0.1.2'
}
public interface DeskAPI {
    @GET("https://www.sojson.com/open/api/weather/json.shtml")
    Observable<Object> getStatistic(@Query("city") String city);
}
  DeskAPI_Creator.getStatistic("上海") {
            Log.d("MSG",it.data.toString())
            null
        }

androidStudio -> run -> make modules or gradle assemble generate DeskAPI_Creator.java