| | |
| | | |
| | | 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; |
| | | |
| | |
| | | private String apiUrl; |
| | | |
| | | private HttpMethod method; |
| | | private Map<String, Object> headers; |
| | | |
| | | /** |
| | | * 付款方id |
| | |
| | | componentMethod, |
| | | url, |
| | | sessionId, |
| | | ""); |
| | | "", |
| | | null); |
| | | } |
| | | |
| | | @Override |
| | |
| | | this.setEndTime(endTime); |
| | | return this; |
| | | } |
| | | |
| | | public IPageData builder(String userId, |
| | | String userName, |
| | | String token, |
| | |
| | | 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); |
| | |
| | | this.setUrl(url); |
| | | this.setSessionId(sessionId); |
| | | this.setAppId(appId); |
| | | this.setHeaders(headers); |
| | | |
| | | return this; |
| | | } |
| | |
| | | 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) { |
| | | this.method = method; |
| | | } |