diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/UserController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/UserController.cs index bb96945d..4f1c4077 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/UserController.cs +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/UserController.cs @@ -67,8 +67,21 @@ namespace Yi.Framework.ApiMicroservice.Controllers } - - + /// + /// 导入数据 + /// + /// + [HttpGet] + [AllowAnonymous] + public async Task Import() + { + throw null; + //var users = await _iUserService._repository.GetListAsync(); + //var fileName = DateTime.Now.ToString("yyyyMMddHHmmssffff") + nameof(UserEntity) + PathConst.DataExport; + //var path = ExcelHelper.ExportExcel(users, fileName, Path.Combine(PathConst.wwwroot, PathEnum.Temp.ToString())); + //var file = System.IO.File.OpenRead(path); + //return File(file, "text/plain", $"{ fileName }.xlsx"); + } /// /// 动态条件分页查询