Explorar el Código

修改model结构

NorthLan hace 6 años
padre
commit
c8c1356be3

+ 7 - 2
zen-api/src/main/kotlin/com/gxzc/zen/logging/model/LogAuth.kt

@@ -35,9 +35,14 @@ open class LogAuth : Serializable {
     var operatorName: String? = null
 
     /**
-     * 操作时间
+     * 操作开始时间
      */
-    var operatorTime: Date = Date()
+    var operatorStartTime: Date = Date()
+
+    /**
+     * 操作结束时间
+     */
+    var operatorEndTime: Date = Date()
 
     /**
      * 客户端host

+ 6 - 11
zen-api/src/main/kotlin/com/gxzc/zen/logging/model/LogBiz.kt

@@ -6,7 +6,7 @@ import java.util.*
 /**
  *
  * @author NorthLan
- * @date 2018/8/23
+ * @date 2018/8/23e
  * @url https://noahlan.com
  */
 open class LogBiz : Serializable {
@@ -21,12 +21,7 @@ open class LogBiz : Serializable {
     /**
      * 业务ID
      */
-    var bizId: String? = null
-
-    /**
-     * 业务名称
-     */
-    var bizName: String? = null
+    var bizCode: String? = null
 
     /**
      * 业务内容(需自行组装)
@@ -44,14 +39,14 @@ open class LogBiz : Serializable {
     var operatorName: String? = null
 
     /**
-     * 操作时间
+     * 业务开始时间
      */
-    var operatorTime: Date = Date()
+    var operatorStartTime: Date = Date()
 
     /**
-     * 客户端host
+     * 业务结束时间
      */
-    var remoteHost: String? = null
+    var operatorEndTime: Date = Date()
 
     /**
      * 备注

+ 7 - 2
zen-api/src/main/kotlin/com/gxzc/zen/logging/model/LogDB.kt

@@ -50,9 +50,14 @@ open class LogDB : Serializable {
     var operatorName: String? = null
 
     /**
-     * 操作时间
+     * 操作开始时间
      */
-    var operatorTime: Date = Date()
+    var operatorStartTime: Date = Date()
+
+    /**
+     * 操作结束时间
+     */
+    var operatorEndTime: Date = Date()
 
     /**
      * 备注

+ 7 - 2
zen-api/src/main/kotlin/com/gxzc/zen/logging/model/LogRequest.kt

@@ -60,9 +60,14 @@ open class LogRequest : Serializable {
     var operatorName: String? = null
 
     /**
-     * 操作时间
+     * 操作开始时间
      */
-    var operatorTime: Date = Date()
+    var operatorStartTime: Date = Date()
+
+    /**
+     * 操作结束时间
+     */
+    var operatorEndTime: Date = Date()
 
     /**
      * 客户端host