|
@@ -1,12 +1,10 @@
|
|
|
-using Hotline.Api.Filter;
|
|
|
+using DotNetCore.CAP;
|
|
|
using Hotline.CallCenter.BlackLists;
|
|
|
using Hotline.CallCenter.Devices;
|
|
|
using Hotline.CallCenter.Ivrs;
|
|
|
-using Hotline.DataSharing.Province.Notifications;
|
|
|
using Hotline.FlowEngine.WorkflowModules;
|
|
|
using Hotline.Identity.Roles;
|
|
|
using Hotline.Orders;
|
|
|
-using Hotline.Orders.Notifications;
|
|
|
using Hotline.Realtimes;
|
|
|
using Hotline.Repository.SqlSugar;
|
|
|
using Hotline.Repository.SqlSugar.Ts;
|
|
@@ -21,7 +19,6 @@ using NewRock.Sdk;
|
|
|
using NewRock.Sdk.Security;
|
|
|
using SqlSugar;
|
|
|
using Tr.Sdk;
|
|
|
-using Wex.Sdk;
|
|
|
using XC.RSAUtil;
|
|
|
using XF.Domain.Authentications;
|
|
|
using XF.Domain.Cache;
|
|
@@ -60,6 +57,7 @@ public class TestController : BaseController
|
|
|
private readonly IWfModuleDomainService _wfModuleDomainService;
|
|
|
private readonly IDaySettingRepository _daySettingRepository;
|
|
|
private readonly ITrClient _trClient;
|
|
|
+ private readonly ICapPublisher _capPublisher;
|
|
|
|
|
|
|
|
|
//private readonly ITypedCache<List<User>> _cache;
|
|
@@ -88,7 +86,8 @@ public class TestController : BaseController
|
|
|
ITimeLimitDomainService timeLimitDomainService,
|
|
|
IWfModuleDomainService wfModuleDomainService,
|
|
|
IDaySettingRepository daySettingRepository,
|
|
|
- ITrClient trClient
|
|
|
+ ITrClient trClient,
|
|
|
+ ICapPublisher capPublisher
|
|
|
)
|
|
|
{
|
|
|
_logger = logger;
|
|
@@ -110,12 +109,15 @@ public class TestController : BaseController
|
|
|
_wfModuleDomainService = wfModuleDomainService;
|
|
|
_daySettingRepository = daySettingRepository;
|
|
|
_trClient = trClient;
|
|
|
+ _capPublisher = capPublisher;
|
|
|
}
|
|
|
|
|
|
[HttpGet("testo")]
|
|
|
public async Task<OpenResponse> TestOrigin()
|
|
|
{
|
|
|
- return OpenResponse.Ok(DateTime.Today.ToString());
|
|
|
+ var today = DateTime.Today.ToString();
|
|
|
+ await _capPublisher.PublishAsync("test.today", today, cancellationToken: HttpContext.RequestAborted);
|
|
|
+ return OpenResponse.Ok(today);
|
|
|
}
|
|
|
|
|
|
[HttpGet("time")]
|