using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace NCC.System.Interfaces.Common
{
///
/// 通用控制器
///
public interface IFileService
{
///
/// 文件上传
///
///
///
///
Task Uploader(string type, IFormFile file);
///
/// 根据类型获取文件存储路径
///
///
///
string GetPathByType(string type);
///
/// 导出
///
///
///
dynamic Export(string jsonStr, string name);
///
/// 导入
///
///
///
string Import(IFormFile file);
///
/// 文件上传
///
///
///
void UploadFile(string type, IFormFile file);
///
/// 文件上传
///
///
///
void UploadFile(string type, string pathExtend, IFormFile file, bool SkipAllowType = false);
}
}