|
|
@@ -0,0 +1,33 @@
|
|
|
+package cn.reghao.dfs.store.sync;
|
|
|
+
|
|
|
+import cn.reghao.dfs.store.model.po.FilePath;
|
|
|
+import cn.reghao.dfs.store.model.po.FileUrl;
|
|
|
+import cn.reghao.dfs.store.service.FileStoreService;
|
|
|
+import cn.reghao.dfs.store.service.FileUrlService;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import java.io.InputStream;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author reghao
|
|
|
+ * @date 2022-08-16 20:15:13
|
|
|
+ */
|
|
|
+@Service
|
|
|
+public class FileSync {
|
|
|
+ private FileUrlService fileUrlService;
|
|
|
+ private FileStoreService fileStoreService;
|
|
|
+
|
|
|
+ public FileSync(FileUrlService fileUrlService, FileStoreService fileStoreService) {
|
|
|
+ this.fileUrlService = fileUrlService;
|
|
|
+ this.fileStoreService = fileStoreService;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void send(String fileId, String absolutePath) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public void receive(String fileId, InputStream inputStream) {
|
|
|
+
|
|
|
+ FilePath filePath = new FilePath();
|
|
|
+ }
|
|
|
+}
|