|
@@ -11,6 +11,7 @@ using Hotline.CallCenter.Calls;
|
|
|
using Hotline.CallCenter.Devices;
|
|
|
using Hotline.CallCenter.Ivrs;
|
|
|
using Hotline.FlowEngine.WorkflowModules;
|
|
|
+using Hotline.FlowEngine.Workflows;
|
|
|
using Hotline.Identity.Roles;
|
|
|
using Hotline.Import;
|
|
|
using Hotline.Orders;
|
|
@@ -79,6 +80,8 @@ public class TestController : BaseController
|
|
|
private readonly IQueue _queue;
|
|
|
private readonly IExportApplication _exportApplication;
|
|
|
private readonly IAiVisitService _aiVisitService;
|
|
|
+ private readonly IRepository<WorkflowTrace> _workflowTraceRepository;
|
|
|
+ private readonly IRepository<WorkflowStepHandler> _workflowStepHandleRepository;
|
|
|
|
|
|
|
|
|
//private readonly ITypedCache<List<User>> _cache;
|
|
@@ -111,8 +114,9 @@ public class TestController : BaseController
|
|
|
ICapPublisher capPublisher,
|
|
|
IQueue queue,
|
|
|
IExportApplication exportApplication,
|
|
|
- IAiVisitService aiVisitService
|
|
|
- )
|
|
|
+ IAiVisitService aiVisitService,
|
|
|
+ IRepository<WorkflowTrace> workflowTraceRepository,
|
|
|
+ IRepository<WorkflowStepHandler> workflowStepHandleRepository)
|
|
|
{
|
|
|
_logger = logger;
|
|
|
_authorizeGenerator = authorizeGenerator;
|
|
@@ -137,6 +141,8 @@ public class TestController : BaseController
|
|
|
_queue = queue;
|
|
|
_exportApplication = exportApplication;
|
|
|
_aiVisitService = aiVisitService;
|
|
|
+ _workflowTraceRepository = workflowTraceRepository;
|
|
|
+ _workflowStepHandleRepository = workflowStepHandleRepository;
|
|
|
}
|
|
|
|
|
|
[HttpGet("testo")]
|
|
@@ -187,7 +193,7 @@ public class TestController : BaseController
|
|
|
|
|
|
[HttpGet("time")]
|
|
|
[AllowAnonymous]
|
|
|
- public async Task<OpenResponse> GetTime(string batchId,string taskId)
|
|
|
+ public async Task<OpenResponse> GetTime(string batchId, string taskId)
|
|
|
{
|
|
|
//await _repositoryts.AddVectorAsync("f595e730-909a-45e4-9138-a84bf15f4662", DateTime.Now,
|
|
|
// new List<string> { "xx", "bb" }, HttpContext.RequestAborted);
|
|
@@ -317,8 +323,13 @@ public class TestController : BaseController
|
|
|
|
|
|
[AllowAnonymous]
|
|
|
[HttpGet("wfdefine")]
|
|
|
- public async Task GetWorkflowDefine()
|
|
|
+ public async Task GetWorkflowDefine([FromQuery] string id)
|
|
|
{
|
|
|
+ //var query = _workflowTraceRepository.Queryable()
|
|
|
+
|
|
|
+ //if (!string.IsNullOrEmpty(id))
|
|
|
+ // query = query.Where(d => d.WorkflowId == id);
|
|
|
+ //var traces = await query.ToListAsync(HttpContext.RequestAborted);
|
|
|
}
|
|
|
|
|
|
[AllowAnonymous]
|
|
@@ -337,5 +348,5 @@ public class TestController : BaseController
|
|
|
var publicKey = keyList[1];
|
|
|
return $"{publicKey} \r\n {privateKey}";
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|