diff --git a/Tiobon.Core.Api/Controllers/CommonController.cs b/Tiobon.Core.Api/Controllers/CommonController.cs
new file mode 100644
index 00000000..c56302f1
--- /dev/null
+++ b/Tiobon.Core.Api/Controllers/CommonController.cs
@@ -0,0 +1,37 @@
+namespace Tiobon.Core.Controllers;
+
+///
+/// 公共服务
+///
+[Produces("application/json")]
+[Route("api/Common")]
+[ApiExplorerSettings(GroupName = Grouping.GroupName_System)]
+public class CommonController : BaseApiController
+{
+ private readonly ILogger _logger;
+ private readonly ICommonServices _commonServices;
+
+ ///
+ /// 构造函数
+ ///
+ ///
+ ///
+ public CommonController(ILogger logger, ICommonServices commonServices)
+ {
+ _commonServices = commonServices;
+ _logger = logger;
+ }
+
+ #region 获取菜单
+ ///
+ /// 获取菜单
+ ///
+ ///
+ ///
+ [HttpPost, Route("GetMenu")]
+ public async Task> GetMenuAsync([FromBody] MenuParam param)
+ {
+ return await _commonServices.GetMenuAsync(param);
+ }
+ #endregion
+}
\ No newline at end of file
diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml
index 046bc4f4..fecd742b 100644
--- a/Tiobon.Core.Api/Tiobon.Core.xml
+++ b/Tiobon.Core.Api/Tiobon.Core.xml
@@ -211,6 +211,25 @@
+
+
+ 公共服务
+
+
+
+
+ 构造函数
+
+
+
+
+
+
+ 获取菜单
+
+
+
+
构造函数
diff --git a/Tiobon.Core.Common/DB/Dapper/Utilities/DbAccess.cs b/Tiobon.Core.Common/DB/Dapper/Utilities/DbAccess.cs
index e5254a6b..5610ffb8 100644
--- a/Tiobon.Core.Common/DB/Dapper/Utilities/DbAccess.cs
+++ b/Tiobon.Core.Common/DB/Dapper/Utilities/DbAccess.cs
@@ -90,7 +90,7 @@ public class DbAccess
public static DataTable GetDataTable(string sql, object param = null, CommandType? commandType = null, bool beginTransaction = false) => Instance.GetDataTable(sql, param, commandType, beginTransaction);
public static async Task GetDataTableAsync(string cmd, object param = null, IDbTransaction transaction = null, CommandType? commandType = null, int? commandTimeout = null) => await Instance.GetDataTableAsync(cmd, param, transaction, commandType, commandTimeout);
- public static List QueryList(string cmd, object param, CommandType? commandType = null, bool beginTransaction = false) where T : class => Instance.QueryList(cmd, param, commandType, beginTransaction);
+ public static List QueryList(string cmd, object param = null, CommandType? commandType = null, bool beginTransaction = false) where T : class => Instance.QueryList(cmd, param, commandType, beginTransaction);
public static async Task> QueryListAsync(string cmd, object param = null, bool beginTransaction = false, CommandType? commandType = null, int? commandTimeout = null) where T : class => await Instance.QueryListAsync(cmd, param, commandType, beginTransaction, commandTimeout);
@@ -101,9 +101,9 @@ public class DbAccess
public static async Task