📜  如何在改造中获取 json 数组响应 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:50.196000             🧑  作者: Mango

代码示例2
@FormUrlEncoded
    @POST("api/sponsors")
    Call> getStatesAndDistrict(
            @Field("xyz") String field1
    );



   Call > call = service.getSponsorsValue();

    call.enqueue(new Callback>() {
        @Override
        public void onResponse(Call> call, Response> response) {

            List rs = response.body();

        }

        @Override
        public void onFailure(Call> call, Throwable t) {

        }
    });