|
@@ -47,6 +47,8 @@ using Hotline.CallCenter.Configs;
|
|
|
using Tr.Sdk;
|
|
|
using Hotline.Application.StatisticalReport.CallReport;
|
|
|
using XF.Domain.Authentications;
|
|
|
+using Hotline.Api.Controllers;
|
|
|
+using Hotline.Application.ExportExcel;
|
|
|
|
|
|
namespace Hotline.Application.Tests;
|
|
|
public class Startup
|
|
@@ -95,6 +97,8 @@ public class Startup
|
|
|
services.Configure<CityBaseConfiguration>(d => configuration.GetSection(nameof(CityBaseConfiguration)).Bind(d));
|
|
|
|
|
|
services.RegisterMapper();
|
|
|
+ //services.AddControllers()
|
|
|
+ // .AddControllersAsServices();
|
|
|
|
|
|
//sqlsugar
|
|
|
services.AddSqlSugar(configuration);
|
|
@@ -150,8 +154,9 @@ public class Startup
|
|
|
services.AddScoped<ZiGongCallReportApplication>();
|
|
|
services.AddScoped<YiBinCallReportApplication>();
|
|
|
services.AddScoped<IMediator, MediatorMock>();
|
|
|
-
|
|
|
services.AddScoped<ISessionContext, DefaultHttpContextAccessor>();
|
|
|
+ services.AddScoped<IExportApplication, ExportApplication>();
|
|
|
+ services.AddScoped<OrderController>();
|
|
|
|
|
|
//ServiceLocator.Instance = services.BuildServiceProvider();
|
|
|
}
|