From 185d87c24ee4b7b702448717d2f62fa517ffb95b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= <454313500@qq.com>
Date: Thu, 16 Nov 2023 12:43:52 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96excel=E6=93=8D?=
=?UTF-8?q?=E4=BD=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Yi.Framework.Module/Excel/ExcelManager.cs | 12 ++++++++++++
.../Yi.Framework.Module/Excel/OemClient.cs | 15 +++++++++++++--
2 files changed, 25 insertions(+), 2 deletions(-)
create mode 100644 Yi.Furion.Net6/Yi.Framework.Module/Excel/ExcelManager.cs
diff --git a/Yi.Furion.Net6/Yi.Framework.Module/Excel/ExcelManager.cs b/Yi.Furion.Net6/Yi.Framework.Module/Excel/ExcelManager.cs
new file mode 100644
index 00000000..02b5ea9c
--- /dev/null
+++ b/Yi.Furion.Net6/Yi.Framework.Module/Excel/ExcelManager.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Yi.Framework.Module.Excel
+{
+ public class ExcelManager
+ {
+ }
+}
diff --git a/Yi.Furion.Net6/Yi.Framework.Module/Excel/OemClient.cs b/Yi.Furion.Net6/Yi.Framework.Module/Excel/OemClient.cs
index 977cc02d..7778b2b9 100644
--- a/Yi.Furion.Net6/Yi.Framework.Module/Excel/OemClient.cs
+++ b/Yi.Furion.Net6/Yi.Framework.Module/Excel/OemClient.cs
@@ -12,8 +12,14 @@ using Org.BouncyCastle.Utilities.Collections;
namespace Yi.Framework.Module.Excel
{
- internal class OemClient
+ public class OemClient
{
+ ///
+ /// 导出excel
+ ///
+ ///
+ ///
+ ///
public void Export(List entityList, string filePath)
{
var properties = typeof(T).GetProperties().Where(x => x.GetCustomAttribute() is not null).Where(x => x.GetGetMethod().IsPublic).ToList();
@@ -53,7 +59,12 @@ namespace Yi.Framework.Module.Excel
workbook.Dispose();
}
-
+ ///
+ /// 导入excel
+ ///
+ ///
+ ///
+ ///
public List Import(string filePath) where T : new()
{
List result = new();