From 2fd46bfb89f017b26a6799c2e213ad7673816622 Mon Sep 17 00:00:00 2001 From: jkpete <1031139173@qq.com> Date: Wed, 16 Apr 2025 14:23:26 +0800 Subject: [PATCH] fixed codepath construct,add EGFileSave --- .../Module/SaveTools/{ => Data}/EGCsvSave.cs | 0 .../Module/SaveTools/{ => Data}/EGDapper.cs | 0 .../SaveTools/{ => Data}/EGLiteDBSave.cs | 0 .../SaveTools/{ => Data}/EGMysqlSave.cs | 0 .../SaveTools/{ => Data}/EGSqliteSave.cs | 0 .../Module/SaveTools/File/EGFtpSave.cs | 77 ++++++++++++++++++ .../Module/SaveTools/File/EGLocalFileSave.cs | 77 ++++++++++++++++++ .../Module/SaveTools/File/EGSftpSave.cs | 78 +++++++++++++++++++ .../Module/SaveTools/File/EGWebDavSave.cs | 77 ++++++++++++++++++ .../SaveTools/{ => Object}/EGByteSave.cs | 0 .../SaveTools/{ => Object}/EGJsonSave.cs | 0 .../SaveTools/{ => Object}/EGRedisSave.cs | 0 .../Module/SaveTools/SaveToolsInterface.cs | 9 ++- 13 files changed, 314 insertions(+), 4 deletions(-) rename addons/EGFramework/Module/SaveTools/{ => Data}/EGCsvSave.cs (100%) rename addons/EGFramework/Module/SaveTools/{ => Data}/EGDapper.cs (100%) rename addons/EGFramework/Module/SaveTools/{ => Data}/EGLiteDBSave.cs (100%) rename addons/EGFramework/Module/SaveTools/{ => Data}/EGMysqlSave.cs (100%) rename addons/EGFramework/Module/SaveTools/{ => Data}/EGSqliteSave.cs (100%) create mode 100644 addons/EGFramework/Module/SaveTools/File/EGFtpSave.cs create mode 100644 addons/EGFramework/Module/SaveTools/File/EGLocalFileSave.cs create mode 100644 addons/EGFramework/Module/SaveTools/File/EGSftpSave.cs create mode 100644 addons/EGFramework/Module/SaveTools/File/EGWebDavSave.cs rename addons/EGFramework/Module/SaveTools/{ => Object}/EGByteSave.cs (100%) rename addons/EGFramework/Module/SaveTools/{ => Object}/EGJsonSave.cs (100%) rename addons/EGFramework/Module/SaveTools/{ => Object}/EGRedisSave.cs (100%) diff --git a/addons/EGFramework/Module/SaveTools/EGCsvSave.cs b/addons/EGFramework/Module/SaveTools/Data/EGCsvSave.cs similarity index 100% rename from addons/EGFramework/Module/SaveTools/EGCsvSave.cs rename to addons/EGFramework/Module/SaveTools/Data/EGCsvSave.cs diff --git a/addons/EGFramework/Module/SaveTools/EGDapper.cs b/addons/EGFramework/Module/SaveTools/Data/EGDapper.cs similarity index 100% rename from addons/EGFramework/Module/SaveTools/EGDapper.cs rename to addons/EGFramework/Module/SaveTools/Data/EGDapper.cs diff --git a/addons/EGFramework/Module/SaveTools/EGLiteDBSave.cs b/addons/EGFramework/Module/SaveTools/Data/EGLiteDBSave.cs similarity index 100% rename from addons/EGFramework/Module/SaveTools/EGLiteDBSave.cs rename to addons/EGFramework/Module/SaveTools/Data/EGLiteDBSave.cs diff --git a/addons/EGFramework/Module/SaveTools/EGMysqlSave.cs b/addons/EGFramework/Module/SaveTools/Data/EGMysqlSave.cs similarity index 100% rename from addons/EGFramework/Module/SaveTools/EGMysqlSave.cs rename to addons/EGFramework/Module/SaveTools/Data/EGMysqlSave.cs diff --git a/addons/EGFramework/Module/SaveTools/EGSqliteSave.cs b/addons/EGFramework/Module/SaveTools/Data/EGSqliteSave.cs similarity index 100% rename from addons/EGFramework/Module/SaveTools/EGSqliteSave.cs rename to addons/EGFramework/Module/SaveTools/Data/EGSqliteSave.cs diff --git a/addons/EGFramework/Module/SaveTools/File/EGFtpSave.cs b/addons/EGFramework/Module/SaveTools/File/EGFtpSave.cs new file mode 100644 index 0000000..c086e90 --- /dev/null +++ b/addons/EGFramework/Module/SaveTools/File/EGFtpSave.cs @@ -0,0 +1,77 @@ +using System.Collections.Generic; +using System.IO; + +namespace EGFramework{ + public class EGFtpSave : IEGSave, IEGSaveFile + { + public void InitSave(string path) + { + throw new System.NotImplementedException(); + } + + public void CopyFile(string sourcePath, string copyPath) + { + throw new System.NotImplementedException(); + } + + public void DownloadFile(string remotePath, string localPath) + { + throw new System.NotImplementedException(); + } + + public Stream DownloadFile(string remotePath) + { + throw new System.NotImplementedException(); + } + + public bool IsRemoteDirectoryExist(string remotePath) + { + throw new System.NotImplementedException(); + } + + public bool IsRemoteFileExist(string remotePath) + { + throw new System.NotImplementedException(); + } + + public IEnumerable ListLocalFilePath(string localPath) + { + throw new System.NotImplementedException(); + } + + public IEnumerable ListRemoteFilePath(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void MakeDirectory(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void MoveFile(string sourcePath, string movePath) + { + throw new System.NotImplementedException(); + } + + public void RemoveFile(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void SyncFile(string remotePath, string localPath) + { + throw new System.NotImplementedException(); + } + + public void UploadFile(FileStream localFileStream, string remotePath) + { + throw new System.NotImplementedException(); + } + + public void UploadFile(string localPath, string remotePath) + { + throw new System.NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/addons/EGFramework/Module/SaveTools/File/EGLocalFileSave.cs b/addons/EGFramework/Module/SaveTools/File/EGLocalFileSave.cs new file mode 100644 index 0000000..5ad0ea5 --- /dev/null +++ b/addons/EGFramework/Module/SaveTools/File/EGLocalFileSave.cs @@ -0,0 +1,77 @@ +using System.Collections.Generic; +using System.IO; + +namespace EGFramework{ + public class EGLocalFileSave : IEGSave, IEGSaveFile + { + public void InitSave(string path) + { + throw new System.NotImplementedException(); + } + + public void CopyFile(string sourcePath, string copyPath) + { + throw new System.NotImplementedException(); + } + + public void DownloadFile(string remotePath, string localPath) + { + throw new System.NotImplementedException(); + } + + public Stream DownloadFile(string remotePath) + { + throw new System.NotImplementedException(); + } + + public bool IsRemoteDirectoryExist(string remotePath) + { + throw new System.NotImplementedException(); + } + + public bool IsRemoteFileExist(string remotePath) + { + throw new System.NotImplementedException(); + } + + public IEnumerable ListLocalFilePath(string localPath) + { + throw new System.NotImplementedException(); + } + + public IEnumerable ListRemoteFilePath(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void MakeDirectory(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void MoveFile(string sourcePath, string movePath) + { + throw new System.NotImplementedException(); + } + + public void RemoveFile(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void SyncFile(string remotePath, string localPath) + { + throw new System.NotImplementedException(); + } + + public void UploadFile(FileStream localFileStream, string remotePath) + { + throw new System.NotImplementedException(); + } + + public void UploadFile(string localPath, string remotePath) + { + throw new System.NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/addons/EGFramework/Module/SaveTools/File/EGSftpSave.cs b/addons/EGFramework/Module/SaveTools/File/EGSftpSave.cs new file mode 100644 index 0000000..6c997e5 --- /dev/null +++ b/addons/EGFramework/Module/SaveTools/File/EGSftpSave.cs @@ -0,0 +1,78 @@ +using System.Collections.Generic; +using System.IO; + +namespace EGFramework{ + public class EGSftpSave : IEGSave,IEGSaveFile + { + public void InitSave(string path) + { + throw new System.NotImplementedException(); + } + + public void CopyFile(string sourcePath, string copyPath) + { + throw new System.NotImplementedException(); + } + + public void DownloadFile(string remotePath, string localPath) + { + throw new System.NotImplementedException(); + } + + public Stream DownloadFile(string remotePath) + { + throw new System.NotImplementedException(); + } + + + public bool IsRemoteDirectoryExist(string remotePath) + { + throw new System.NotImplementedException(); + } + + public bool IsRemoteFileExist(string remotePath) + { + throw new System.NotImplementedException(); + } + + public IEnumerable ListLocalFilePath(string localPath) + { + throw new System.NotImplementedException(); + } + + public IEnumerable ListRemoteFilePath(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void MakeDirectory(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void MoveFile(string sourcePath, string movePath) + { + throw new System.NotImplementedException(); + } + + public void RemoveFile(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void SyncFile(string remotePath, string localPath) + { + throw new System.NotImplementedException(); + } + + public void UploadFile(FileStream localFileStream, string remotePath) + { + throw new System.NotImplementedException(); + } + + public void UploadFile(string localPath, string remotePath) + { + throw new System.NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/addons/EGFramework/Module/SaveTools/File/EGWebDavSave.cs b/addons/EGFramework/Module/SaveTools/File/EGWebDavSave.cs new file mode 100644 index 0000000..257c130 --- /dev/null +++ b/addons/EGFramework/Module/SaveTools/File/EGWebDavSave.cs @@ -0,0 +1,77 @@ +using System.Collections.Generic; +using System.IO; + +namespace EGFramework{ + public class EGWebDavSave : IEGSave, IEGSaveFile + { + public void InitSave(string path) + { + throw new System.NotImplementedException(); + } + + public void CopyFile(string sourcePath, string copyPath) + { + throw new System.NotImplementedException(); + } + + public void DownloadFile(string remotePath, string localPath) + { + throw new System.NotImplementedException(); + } + + public Stream DownloadFile(string remotePath) + { + throw new System.NotImplementedException(); + } + + public bool IsRemoteDirectoryExist(string remotePath) + { + throw new System.NotImplementedException(); + } + + public bool IsRemoteFileExist(string remotePath) + { + throw new System.NotImplementedException(); + } + + public IEnumerable ListLocalFilePath(string localPath) + { + throw new System.NotImplementedException(); + } + + public IEnumerable ListRemoteFilePath(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void MakeDirectory(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void MoveFile(string sourcePath, string movePath) + { + throw new System.NotImplementedException(); + } + + public void RemoveFile(string remotePath) + { + throw new System.NotImplementedException(); + } + + public void SyncFile(string remotePath, string localPath) + { + throw new System.NotImplementedException(); + } + + public void UploadFile(FileStream localFileStream, string remotePath) + { + throw new System.NotImplementedException(); + } + + public void UploadFile(string localPath, string remotePath) + { + throw new System.NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/addons/EGFramework/Module/SaveTools/EGByteSave.cs b/addons/EGFramework/Module/SaveTools/Object/EGByteSave.cs similarity index 100% rename from addons/EGFramework/Module/SaveTools/EGByteSave.cs rename to addons/EGFramework/Module/SaveTools/Object/EGByteSave.cs diff --git a/addons/EGFramework/Module/SaveTools/EGJsonSave.cs b/addons/EGFramework/Module/SaveTools/Object/EGJsonSave.cs similarity index 100% rename from addons/EGFramework/Module/SaveTools/EGJsonSave.cs rename to addons/EGFramework/Module/SaveTools/Object/EGJsonSave.cs diff --git a/addons/EGFramework/Module/SaveTools/EGRedisSave.cs b/addons/EGFramework/Module/SaveTools/Object/EGRedisSave.cs similarity index 100% rename from addons/EGFramework/Module/SaveTools/EGRedisSave.cs rename to addons/EGFramework/Module/SaveTools/Object/EGRedisSave.cs diff --git a/addons/EGFramework/Module/SaveTools/SaveToolsInterface.cs b/addons/EGFramework/Module/SaveTools/SaveToolsInterface.cs index 049f83c..eaaa922 100644 --- a/addons/EGFramework/Module/SaveTools/SaveToolsInterface.cs +++ b/addons/EGFramework/Module/SaveTools/SaveToolsInterface.cs @@ -106,6 +106,7 @@ namespace EGFramework IEnumerable ListRemoteFilePath(string remotePath); IEnumerable ListLocalFilePath(string localPath); bool IsRemoteFileExist(string remotePath); + bool IsRemoteDirectoryExist(string remotePath); void DownloadFile(string remotePath,string localPath); Stream DownloadFile(string remotePath); void SyncFile(string remotePath,string localPath); @@ -113,10 +114,10 @@ namespace EGFramework public interface IEGSaveFile:IEGSaveFileReadOnly{ void UploadFile(FileStream localFileStream,string remotePath); void UploadFile(string localPath,string remotePath); - void RemoveRemote(string remotePath); - void MakeDictionaryRemote(string remotePath); - void CopyRemote(string sourcePath,string copyPath); - void MoveRemote(string sourcePath,string movePath); + void CopyFile(string sourcePath,string copyPath); + void MoveFile(string sourcePath,string movePath); + void RemoveFile(string remotePath); + void MakeDirectory(string remotePath); } #endregion } \ No newline at end of file