using Infrastructure.Attribute; using Microsoft.AspNetCore.Http; using ZR.Model.Models; using ZR.Model.System; namespace ZR.Service.System.IService { public interface ISysFileService : IBaseService { long InsertFile(SysFile file); /// /// 上传文件 /// /// /// /// 结果、地址、文件名 (bool, string, string) SaveFile(string picdir, IFormFile formFile); (bool, string, string) SaveFile(string picdir, IFormFile formFile, string customFileName); /// /// 按时间来创建文件夹 /// /// /// eg: 2020/11/3 string GetdirPath(string path = ""); /// /// 取文件名的MD5值(16位) /// /// 文件名,不包括扩展名 /// string HashFileName(string str = null); } }