using CyZuoYeBenPeiSong.model; namespace CYZuoYeBenPeiSong.Application; /// /// 系统服务接口 /// public class SystemAppService : IDynamicApiController { private readonly ISystemService _systemService; private readonly ISqlSugarClient _unitOfWork; public SystemAppService(ISystemService systemService ) { _systemService = systemService; //_unitOfWork = sugarUnitOfWork; } /// /// 获取系统描述 /// /// public string GetDescription() { var unitOfWork = App.GetService();//用手动获取方式支持切换仓储 var a= unitOfWork.Queryable().ToList(); return _systemService.GetDescription(); } }