|
@@ -2,6 +2,7 @@ package com.java110.core.context;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.java110.utils.util.DateUtil;
|
|
import com.java110.utils.util.DateUtil;
|
|
|
|
|
+import org.springframework.http.HttpHeaders;
|
|
|
import org.springframework.http.HttpMethod;
|
|
import org.springframework.http.HttpMethod;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
|
|
|
@@ -50,6 +51,7 @@ public class PageData implements IPageData, Serializable {
|
|
|
private String apiUrl;
|
|
private String apiUrl;
|
|
|
|
|
|
|
|
private HttpMethod method;
|
|
private HttpMethod method;
|
|
|
|
|
+ private Map<String, Object> headers;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 付款方id
|
|
* 付款方id
|
|
@@ -190,7 +192,8 @@ public class PageData implements IPageData, Serializable {
|
|
|
componentMethod,
|
|
componentMethod,
|
|
|
url,
|
|
url,
|
|
|
sessionId,
|
|
sessionId,
|
|
|
- "");
|
|
|
|
|
|
|
+ "",
|
|
|
|
|
+ null);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -221,7 +224,6 @@ public class PageData implements IPageData, Serializable {
|
|
|
this.setEndTime(endTime);
|
|
this.setEndTime(endTime);
|
|
|
return this;
|
|
return this;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
public IPageData builder(String userId,
|
|
public IPageData builder(String userId,
|
|
|
String userName,
|
|
String userName,
|
|
|
String token,
|
|
String token,
|
|
@@ -232,6 +234,30 @@ public class PageData implements IPageData, Serializable {
|
|
|
String sessionId,
|
|
String sessionId,
|
|
|
String appId)
|
|
String appId)
|
|
|
throws IllegalArgumentException {
|
|
throws IllegalArgumentException {
|
|
|
|
|
+ return builder(userId,
|
|
|
|
|
+ userName,
|
|
|
|
|
+ token,
|
|
|
|
|
+ reqData,
|
|
|
|
|
+ componentCode,
|
|
|
|
|
+ componentMethod,
|
|
|
|
|
+ url,
|
|
|
|
|
+ sessionId,
|
|
|
|
|
+ appId,
|
|
|
|
|
+ null);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ public IPageData builder(String userId,
|
|
|
|
|
+ String userName,
|
|
|
|
|
+ String token,
|
|
|
|
|
+ String reqData,
|
|
|
|
|
+ String componentCode,
|
|
|
|
|
+ String componentMethod,
|
|
|
|
|
+ String url,
|
|
|
|
|
+ String sessionId,
|
|
|
|
|
+ String appId,
|
|
|
|
|
+ Map<String, Object> headers)
|
|
|
|
|
+ throws IllegalArgumentException {
|
|
|
this.setComponentCode(componentCode);
|
|
this.setComponentCode(componentCode);
|
|
|
this.setComponentMethod(componentMethod);
|
|
this.setComponentMethod(componentMethod);
|
|
|
this.setReqData(reqData);
|
|
this.setReqData(reqData);
|
|
@@ -242,6 +268,7 @@ public class PageData implements IPageData, Serializable {
|
|
|
this.setUrl(url);
|
|
this.setUrl(url);
|
|
|
this.setSessionId(sessionId);
|
|
this.setSessionId(sessionId);
|
|
|
this.setAppId(appId);
|
|
this.setAppId(appId);
|
|
|
|
|
+ this.setHeaders(headers);
|
|
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
}
|
|
}
|
|
@@ -279,6 +306,15 @@ public class PageData implements IPageData, Serializable {
|
|
|
return method;
|
|
return method;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Map<String, Object> getHeaders() {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setHeaders(Map<String, Object> headers) {
|
|
|
|
|
+ this.headers = headers;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public void setMethod(HttpMethod method) {
|
|
public void setMethod(HttpMethod method) {
|
|
|
this.method = method;
|
|
this.method = method;
|
|
|
}
|
|
}
|