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