fix 优化任务分配速度
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Dlhis.ScheduledTask.Common.Request;
|
||||
using Dlhis.Basic.Api;
|
||||
using Dlhis.Basic.Api.Request;
|
||||
using Dlhis.ScheduledTask.Common.Request;
|
||||
using Dlhis.ScheduledTask.Common.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -42,4 +44,11 @@ public class HangfireController : ControllerBase
|
||||
{
|
||||
await _hangfireService.CreateSapWerkSyncBackgroundJobAsync(request);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[HttpPost("assignment-generate")]
|
||||
public void GeneratePermissionsAsync(GeneratePermissionIdRequest request)
|
||||
{
|
||||
_hangfireService.GeneratePermissions(request);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user