Browse Source

fixed codepath construct,add EGFileSave

master
jkpete 4 months ago
parent
commit
2fd46bfb89
  1. 0
      addons/EGFramework/Module/SaveTools/Data/EGCsvSave.cs
  2. 0
      addons/EGFramework/Module/SaveTools/Data/EGDapper.cs
  3. 0
      addons/EGFramework/Module/SaveTools/Data/EGLiteDBSave.cs
  4. 0
      addons/EGFramework/Module/SaveTools/Data/EGMysqlSave.cs
  5. 0
      addons/EGFramework/Module/SaveTools/Data/EGSqliteSave.cs
  6. 77
      addons/EGFramework/Module/SaveTools/File/EGFtpSave.cs
  7. 77
      addons/EGFramework/Module/SaveTools/File/EGLocalFileSave.cs
  8. 78
      addons/EGFramework/Module/SaveTools/File/EGSftpSave.cs
  9. 77
      addons/EGFramework/Module/SaveTools/File/EGWebDavSave.cs
  10. 0
      addons/EGFramework/Module/SaveTools/Object/EGByteSave.cs
  11. 0
      addons/EGFramework/Module/SaveTools/Object/EGJsonSave.cs
  12. 0
      addons/EGFramework/Module/SaveTools/Object/EGRedisSave.cs
  13. 9
      addons/EGFramework/Module/SaveTools/SaveToolsInterface.cs

0
addons/EGFramework/Module/SaveTools/EGCsvSave.cs → addons/EGFramework/Module/SaveTools/Data/EGCsvSave.cs

0
addons/EGFramework/Module/SaveTools/EGDapper.cs → addons/EGFramework/Module/SaveTools/Data/EGDapper.cs

0
addons/EGFramework/Module/SaveTools/EGLiteDBSave.cs → addons/EGFramework/Module/SaveTools/Data/EGLiteDBSave.cs

0
addons/EGFramework/Module/SaveTools/EGMysqlSave.cs → addons/EGFramework/Module/SaveTools/Data/EGMysqlSave.cs

0
addons/EGFramework/Module/SaveTools/EGSqliteSave.cs → addons/EGFramework/Module/SaveTools/Data/EGSqliteSave.cs

77
addons/EGFramework/Module/SaveTools/File/EGFtpSave.cs

@ -0,0 +1,77 @@ @@ -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<IEGFileMsg> ListLocalFilePath(string localPath)
{
throw new System.NotImplementedException();
}
public IEnumerable<IEGFileMsg> 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();
}
}
}

77
addons/EGFramework/Module/SaveTools/File/EGLocalFileSave.cs

@ -0,0 +1,77 @@ @@ -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<IEGFileMsg> ListLocalFilePath(string localPath)
{
throw new System.NotImplementedException();
}
public IEnumerable<IEGFileMsg> 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();
}
}
}

78
addons/EGFramework/Module/SaveTools/File/EGSftpSave.cs

@ -0,0 +1,78 @@ @@ -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<IEGFileMsg> ListLocalFilePath(string localPath)
{
throw new System.NotImplementedException();
}
public IEnumerable<IEGFileMsg> 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();
}
}
}

77
addons/EGFramework/Module/SaveTools/File/EGWebDavSave.cs

@ -0,0 +1,77 @@ @@ -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<IEGFileMsg> ListLocalFilePath(string localPath)
{
throw new System.NotImplementedException();
}
public IEnumerable<IEGFileMsg> 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();
}
}
}

0
addons/EGFramework/Module/SaveTools/EGByteSave.cs → addons/EGFramework/Module/SaveTools/Object/EGByteSave.cs

0
addons/EGFramework/Module/SaveTools/EGJsonSave.cs → addons/EGFramework/Module/SaveTools/Object/EGJsonSave.cs

0
addons/EGFramework/Module/SaveTools/EGRedisSave.cs → addons/EGFramework/Module/SaveTools/Object/EGRedisSave.cs

9
addons/EGFramework/Module/SaveTools/SaveToolsInterface.cs

@ -106,6 +106,7 @@ namespace EGFramework @@ -106,6 +106,7 @@ namespace EGFramework
IEnumerable<IEGFileMsg> ListRemoteFilePath(string remotePath);
IEnumerable<IEGFileMsg> 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 @@ -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
}
Loading…
Cancel
Save