📜  获取方法改造 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:13.604000             🧑  作者: Mango

代码示例1
public interface IService {

      String BASE_URL = "https://api.test.com/";
      String API_KEY = "SFSDF24242353434";

      @GET("Search") //i.e https://api.test.com/Search?
      Call getProducts(@Query("one") String one, @Query("two") String two,    
                                @Query("key") String key)
}