移动系统liao
2025-01-26 950f32a006736bd9407bb5f73b744892b8bade2a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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();
    }
}