using Microsoft.AspNetCore.Http; using ZR.Service; using ZR.ServiceCore.Model; namespace ZR.ServiceCore.Services.IService { public interface ISysFileService : IBaseService { Task InsertFile(SysFile file); Task SaveFile(SysFile file, IFormFile formFile, string rootPath, string uploadUrl); /// /// 上传文件 /// /// /// /// /// /// /// /// /// 文件对象 Task SaveFileToLocal(string rootPath, string fileName, string fileDir, long userId, string nickName, IFormFile formFile, string uploadUrl); Task SaveFileToAliyun(SysFile file, IFormFile formFile); /// /// 按时间来创建文件夹 /// /// /// /// eg: 2020/11/3 string GetdirPath(string path = "", bool byTimeStore = true); /// /// 取文件名的MD5值(16位) /// /// 文件名,不包括扩展名 /// string HashFileName(string str = null); /// /// 删除文件 /// /// 文件ID /// Task DeleteSysFileAsync(long[] ids); /// /// 条件查询文件列表 /// /// 文件对象 /// List SelectFileList(SysFile sysFile); /// /// 文件解密流 /// /// /// Stream DecryptSysFileStream(string fileUrl); } }