From 91f58ac34a01db7bb4e30a57af4454e0c36fd1c9 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期日, 14 六月 2020 13:06:21 +0800
Subject: [PATCH] 处理服务启动失败问题

---
 java110-core/src/main/java/com/java110/core/context/PageData.java |   89 ++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 80 insertions(+), 9 deletions(-)

diff --git a/java110-core/src/main/java/com/java110/core/context/PageData.java b/java110-core/src/main/java/com/java110/core/context/PageData.java
index 6caa96e..0c19996 100644
--- a/java110-core/src/main/java/com/java110/core/context/PageData.java
+++ b/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.HttpMethod;
 import org.springframework.http.ResponseEntity;
 
 import java.io.Serializable;
@@ -12,17 +13,20 @@
  * 椤甸潰璇锋眰鏁版嵁灏佽
  * Created by wuxw on 2018/5/2.
  */
-public class PageData implements IPageData,Serializable {
+public class PageData implements IPageData, Serializable {
 
 
-
-    public PageData(){
+    public PageData() {
 
         this.setTransactionId(UUID.randomUUID().toString());
     }
 
 
-    private String userId ;
+    private String userId;
+
+    private String userName;
+
+    private String appId;
 
     //浼氳瘽ID
     private String sessionId;
@@ -42,6 +46,10 @@
     private String responseTime;
 
     private String url;
+
+    private String apiUrl;
+
+    private HttpMethod method;
 
     private ResponseEntity responseEntity;
 
@@ -138,33 +146,96 @@
 
     /**
      * 鍒濆鍖� PageData
+     *
      * @return
      */
-    public static IPageData newInstance(){
+    public static IPageData newInstance() {
         return new PageData();
     }
 
-    public IPageData builder(Map param) throws IllegalArgumentException{
+    public IPageData builder(Map param) throws IllegalArgumentException {
         JSONObject reqJson = null;
 
         return this;
     }
 
-    public IPageData builder(String userId,String token,String reqData,String componentCode,String componentMethod,String url,String sessionId)
-            throws IllegalArgumentException{
+    public IPageData builder(String userId,
+                             String userName,
+                             String token,
+                             String reqData,
+                             String componentCode,
+                             String componentMethod,
+                             String url,
+                             String sessionId) {
+        return builder(userId,
+                userName,
+                token,
+                reqData,
+                componentCode,
+                componentMethod,
+                url,
+                sessionId,
+                "");
+    }
+
+    public IPageData builder(String userId,
+                             String userName,
+                             String token,
+                             String reqData,
+                             String componentCode,
+                             String componentMethod,
+                             String url,
+                             String sessionId,
+                             String appId)
+            throws IllegalArgumentException {
         this.setComponentCode(componentCode);
         this.setComponentMethod(componentMethod);
         this.setReqData(reqData);
         this.setRequestTime(DateUtil.getyyyyMMddhhmmssDateString());
         this.setUserId(userId);
+        this.setUserName(userName);
         this.setToken(token);
         this.setUrl(url);
         this.setSessionId(sessionId);
+        this.setAppId(appId);
 
         return this;
     }
 
-    public String toString(){
+    public String toString() {
         return JSONObject.toJSONString(this);
     }
+
+    @Override
+    public String getAppId() {
+        return appId;
+    }
+
+    public void setAppId(String appId) {
+        this.appId = appId;
+    }
+
+    public String getUserName() {
+        return userName;
+    }
+
+    public void setUserName(String userName) {
+        this.userName = userName;
+    }
+
+    public String getApiUrl() {
+        return apiUrl;
+    }
+
+    public void setApiUrl(String apiUrl) {
+        this.apiUrl = apiUrl;
+    }
+
+    public HttpMethod getMethod() {
+        return method;
+    }
+
+    public void setMethod(HttpMethod method) {
+        this.method = method;
+    }
 }

--
Gitblit v1.8.0