private void requestDelete() { HashMap<String, String> map = new HashMap<String, String>(); map.put("id", this.dto.getId() + ""); JSONRequest request = new JSONRequest( context, RequestEnum.HOUSE_RESERVE_DELETE, map, new Response.Listener<String>() { @Override public void onResponse(String jsonObject) { try { ObjectMapper objectMapper = new ObjectMapper(); objectMapper.configure( DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false); JavaType type = objectMapper .getTypeFactory() .constructParametricType(AppMessageDto.class, String.class); AppMessageDto<String> dto = objectMapper.readValue(jsonObject, type); if (dto.getStatus() == AppResponseStatus.SUCCESS) { Toast.makeText(context, "删除成功", Toast.LENGTH_SHORT).show(); context.requestReserveList(); } else { Toast.makeText(context, dto.getMsg(), Toast.LENGTH_SHORT).show(); } } catch (Exception e) { e.printStackTrace(); } } }); context.addToRequestQueue(request, "正在提交数据..."); }