国产成人a∨激情视频厨房,国产v亚洲v欧美v精品综合,heyzo高无码国产精品,国产av导航大全精品,成品人视频ww入口

Retrofit API的GET?

https://api.heweather.com/x3/weather?cityid=城市ID&key=XXXXXXXXX
這種API 如何用Retrofit 來書寫呢

@GET("x3/weather?cityid={cityid}&key={apikey}") Call<WeatherResult> WeatherGet(@Path("cityid") String id,@Path("apikey") String key);

這樣寫 被提示要使用`@Query("cityid") String id`

Call<WeatherResult> WeatherGet(@Query("<愛尬聊_頭條百科>cityid") String id,@Path("apikey") String key);

修改完后 又被提示 Path 不能放在 Query后面

那么我想問這樣的API 如何寫呢


劉3192988467 1天前

https://futurestud.io/tutoria... 根據(jù)這個來看應該就是這么寫吧


編輯 舉報 2023-04-19 12:10

0個評論

暫無評論...
驗證碼 換一張
相關內容