java110
2022-06-16 5d167ea6e943dd1574e0e6ed70ff25b8d4830f61
java110-core/src/main/java/com/java110/core/context/PageData.java
@@ -2,6 +2,7 @@
import com.alibaba.fastjson.JSONObject;
import com.java110.utils.util.DateUtil;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
@@ -50,6 +51,7 @@
    private String apiUrl;
    private HttpMethod method;
    private Map<String, Object> headers;
    /**
     * 付款方id
@@ -190,7 +192,8 @@
                componentMethod,
                url,
                sessionId,
                "");
                "",
                null);
    }
    @Override
@@ -221,7 +224,6 @@
        this.setEndTime(endTime);
        return this;
    }
    public IPageData builder(String userId,
                             String userName,
                             String token,
@@ -231,6 +233,30 @@
                             String url,
                             String sessionId,
                             String appId)
            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.setComponentMethod(componentMethod);
@@ -242,6 +268,7 @@
        this.setUrl(url);
        this.setSessionId(sessionId);
        this.setAppId(appId);
        this.setHeaders(headers);
        return this;
    }
@@ -279,6 +306,15 @@
        return method;
    }
    @Override
    public Map<String, Object> getHeaders() {
        return this.headers;
    }
    public void setHeaders(Map<String, Object> headers) {
        this.headers = headers;
    }
    public void setMethod(HttpMethod method) {
        this.method = method;
    }