注销大华
parent
2b18e0089b
commit
40aa697a6e
|
|
@ -159,28 +159,28 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
|
|||
algorithmCode
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建行为场景分析任务
|
||||
/// </summary>
|
||||
/// <param name="data">参数详见文档7.1.3.3. 创建行为场景分析任务</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public async Task<Response<string>> CreateTasks(DaHuaTaskInfo data)
|
||||
{
|
||||
await _listener.AddQueueBindingAsync("processing_event", "topic", $"event.behaviorAlarm.1.{data.channelId}");
|
||||
return await PostJsonAsync("/processing/behavior/realtime/tasks", data);
|
||||
}
|
||||
/// <summary>
|
||||
/// 模拟添加队列
|
||||
/// </summary>
|
||||
/// <param name="channelId"></param>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public async void AddQueueBinding(string channelId)
|
||||
{
|
||||
await _listener.AddQueueBindingAsync("processing_event", "topic", $"event.trafficJunction.1.{channelId}");
|
||||
}
|
||||
///// <summary>
|
||||
///// 创建行为场景分析任务
|
||||
///// </summary>
|
||||
///// <param name="data">参数详见文档7.1.3.3. 创建行为场景分析任务</param>
|
||||
///// <returns></returns>
|
||||
//[HttpPost]
|
||||
//[AllowAnonymous]
|
||||
//public async Task<Response<string>> CreateTasks(DaHuaTaskInfo data)
|
||||
//{
|
||||
// await _listener.AddQueueBindingAsync("processing_event", "topic", $"event.behaviorAlarm.1.{data.channelId}");
|
||||
// return await PostJsonAsync("/processing/behavior/realtime/tasks", data);
|
||||
//}
|
||||
///// <summary>
|
||||
///// 模拟添加队列
|
||||
///// </summary>
|
||||
///// <param name="channelId"></param>
|
||||
//[HttpPost]
|
||||
//[AllowAnonymous]
|
||||
//public async void AddQueueBinding(string channelId)
|
||||
//{
|
||||
// await _listener.AddQueueBindingAsync("processing_event", "topic", $"event.trafficJunction.1.{channelId}");
|
||||
//}
|
||||
/// <summary>
|
||||
/// 删除行为场景分析任务
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue