public <U, S> R<U> query(S req, String name, Class<U> type) { R<String> resp = httpPost(name, JSONObject.toJSONString(req)); if (!resp.isSuccess()) { R.fail("网络问题"); } U result = JSONObject.parseObject(resp.getResult(), type); return R.ok(result); }
标签:name,传入,resp,req,传出,result,泛型,type From: https://www.cnblogs.com/matd/p/17637027.html