Browse Source

更新上传组件

NorthLan 6 years ago
parent
commit
4a5f21a348

+ 11 - 0
zen-api/src/main/kotlin/com/gxzc/zen/rpc/api/sys/RUploadService.kt

@@ -2,6 +2,7 @@ package com.gxzc.zen.rpc.api.sys
 
 import com.gxzc.zen.api.sys.model.SysUploadInfo
 import com.gxzc.zen.common.dto.ZenFileMetadata
+import com.gxzc.zen.rpc.model.sys.RUploadInfo
 import java.io.File
 
 /**
@@ -29,4 +30,14 @@ interface RUploadService {
      * 通过ids获取 文件数据 列表
      */
     fun getUploadInfoListByIdList(ids: Collection<Long>): MutableList<SysUploadInfo>
+
+    /**
+     * 通过id修改文件信息
+     */
+    fun modifyFileInfo(entity: RUploadInfo): SysUploadInfo
+
+    /**
+     * 通过id批量修改文件信息
+     */
+    fun modifyBatchFileInfo(entityList: MutableList<RUploadInfo>): MutableList<SysUploadInfo>
 }

+ 19 - 0
zen-api/src/main/kotlin/com/gxzc/zen/rpc/model/sys/RUploadInfo.kt

@@ -0,0 +1,19 @@
+package com.gxzc.zen.rpc.model.sys
+
+import java.io.Serializable
+
+/**
+ * 文件信息 RPC
+ * @author NorthLan
+ * @date 2018/6/27
+ * @url https://noahlan.com
+ */
+open class RUploadInfo : Serializable {
+    companion object {
+        private const val serialVersionUID = 1L
+    }
+
+    var id: Long? = null
+    var newFilename: String? = null
+    var newPath: String? = null
+}