public static T BaseEntT doPostEnt(String httpUrl, MapString, String params, ClassT clazz) { String json = doPost(httpUrl, params); return JSONObject.parseObject(json, new TypeReferenceBaseEntT(clazz) { }.getType()); }import java.io.Seriali
Class<T> clazz) {
String json = doPost(httpUrl, params);
return JSONObject.parseObject(json, new TypeReference<BaseEnt<T>>(clazz) {
}.getType());
}import java.io.Serializable;
public class BaseEnt<T> implements Serializable {
private T data;
private ExtraBean extra;
private String message;
}