From 85bc2484c98f4eb0bfb2bad003c9702bdf3cbe13 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 27 五月 2020 00:05:24 +0800
Subject: [PATCH] 优化代码

---
 java110-core/src/main/java/com/java110/core/context/PageData.java |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 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 187411d..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;
@@ -23,6 +24,8 @@
 
     private String userId;
 
+    private String userName;
+
     private String appId;
 
     //浼氳瘽ID
@@ -43,6 +46,10 @@
     private String responseTime;
 
     private String url;
+
+    private String apiUrl;
+
+    private HttpMethod method;
 
     private ResponseEntity responseEntity;
 
@@ -153,6 +160,7 @@
     }
 
     public IPageData builder(String userId,
+                             String userName,
                              String token,
                              String reqData,
                              String componentCode,
@@ -160,6 +168,7 @@
                              String url,
                              String sessionId) {
         return builder(userId,
+                userName,
                 token,
                 reqData,
                 componentCode,
@@ -170,6 +179,7 @@
     }
 
     public IPageData builder(String userId,
+                             String userName,
                              String token,
                              String reqData,
                              String componentCode,
@@ -183,6 +193,7 @@
         this.setReqData(reqData);
         this.setRequestTime(DateUtil.getyyyyMMddhhmmssDateString());
         this.setUserId(userId);
+        this.setUserName(userName);
         this.setToken(token);
         this.setUrl(url);
         this.setSessionId(sessionId);
@@ -203,4 +214,28 @@
     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