diff --git a/Tiobon.Core.Api/Controllers/BaseController.cs b/Tiobon.Core.Api/Controllers/BaseController.cs
index d29771af..123efede 100644
--- a/Tiobon.Core.Api/Controllers/BaseController.cs
+++ b/Tiobon.Core.Api/Controllers/BaseController.cs
@@ -1,190 +1,195 @@
-using System.Collections.Generic;
-using System.Reflection;
-using Tiobon.Core.Model;
-
-namespace Tiobon.Core.Controllers
+using System.Reflection;
+
+namespace Tiobon.Core.Controllers;
+
+///
+/// 增删改查基础服务
+///
+///
+///
+///
+///
+///
+public class BaseController : Controller
{
- public class BaseController : Controller
+ #region 初始化
+ protected IServiceBase _service;
+ ///
+ /// 初始化 (注入)
+ ///
+ public BaseController(IServiceBase service)
+ {
+ _service = service;
+ }
+ #endregion
+
+
+ #region 基础接口
+
+ #region 查询
+ ///
+ /// Ghra_Grade -- 根据条件查询数据
+ ///
+ /// 条件
+ ///
+ [HttpGet]
+ public async Task> QueryByFilter([FromFilter] QueryFilter filter)
+ {
+ var data = (await InvokeServiceAsync("QueryFilterPage", [filter])) as ServicePageResult;
+ return data;
+ }
+
+ ///
+ /// Ghra_Grade -- 根据Id查询数据
+ ///
+ /// 主键ID
+ ///
+ [HttpGet("{Id}")]
+ public async Task> QueryById(long Id)
+ {
+ var entity = await InvokeServiceAsync("QueryById", [Id]);
+ if (entity == null)
+ return Failed