public async static Task <List <EquipmentDto> > GetExcelDataAsync(IFormFile file) { List <EquipmentDto> list = null; ExcelFile excelFile = null; using (excelFile = await ExcelFile.CreateFormFormFileAsync(file)) { list = excelFile.GetExcelData <EquipmentDto>( new ExcelMapper[] { new ExcelMapper("ip", nameof(EquipmentDto.IpAddressV4)), new ExcelMapper("备注", nameof(EquipmentDto.Remarks)) }); } return(list); }