java110
2020-05-26 f8655de7b212ec6a39e61e508804f9e97c9f5d1e
java110-core/src/main/java/com/java110/core/context/IPageData.java
@@ -1,5 +1,6 @@
package com.java110.core.context;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
/**
@@ -14,6 +15,14 @@
     * @return 用户ID
     */
     String getUserId();
    /**
     * 获取用户ID
     * @return 用户ID
     */
    String getUserName();
     String getAppId();
    /**
     * 获取交易流水
@@ -84,6 +93,18 @@
     void setResponseEntity(ResponseEntity responseEntity);
    /**
     * 获取调用api 地址
     * @return
     */
    public String getApiUrl();
    //设置调用api 服务地址
    public void setApiUrl(String apiUrl);
    public HttpMethod getMethod();
    public void setMethod(HttpMethod method);
    /**
     * 构建 pd 对象
     * @param userId 用户ID
     * @param token token
@@ -91,11 +112,29 @@
     * @param componentCode 组件编码
     * @param componentMethod 组件方法
     * @param url 请求url
     * @param sessionId 回话ID
     * @param sessionId 会话ID
     * @return IPageData对象
     * @throws IllegalArgumentException 参数错误异常
     */
     IPageData builder(String userId, String token, String reqData, String componentCode, String componentMethod, String url, String sessionId)
     IPageData builder(String userId,
                       String userName,
                       String token,
                       String reqData,
                       String componentCode,
                       String componentMethod,
                       String url,
                       String sessionId,
                       String appId)
            throws IllegalArgumentException;
    IPageData builder(String userId,
                      String userName,
                      String token,
                      String reqData,
                      String componentCode,
                      String componentMethod,
                      String url,
                      String sessionId)
            throws IllegalArgumentException;
}