Browse Source

修复文件信息序列化问题

NorthLan 6 years ago
parent
commit
3627ed1107

+ 9 - 3
zen-core/src/main/kotlin/com/gxzc/zen/common/dto/ZenFileMetadata.kt

@@ -1,17 +1,23 @@
 package com.gxzc.zen.common.dto
 
+import java.io.Serializable
+
 /**
  * 文件DTO
  * @author NorthLan
  * @date 2018/5/18
  * @url https://noahlan.com
  */
-open class ZenFileMetadata {
+open class ZenFileMetadata : Serializable {
+    companion object {
+        private const val serialVersionUID = 1000000000000000015L
+    }
+
     var chunkNumber: Int? = null
     var chunkSize: Long? = null
-//    var currentChunkSize: Long? = null
+    //    var currentChunkSize: Long? = null
     var totalSize: Long? = null
-//    var identifier: String? = null
+    //    var identifier: String? = null
     var filename: String? = null
     var relativePath: String? = null
     var totalChunks: Int? = null