fix 优化任务分配速度

This commit is contained in:
2024-05-30 23:01:21 +08:00
parent bce58ef938
commit 7f14b1fdc5
13 changed files with 195 additions and 47 deletions

View File

@@ -4,6 +4,7 @@ using Kurisu.RemoteCall.Default;
namespace Dlhis.Scheduled.Api;
[RequestLog]
[EnableRemoteClient(Name = "hangfire-service", BaseUrl = "${InternalRequest:ScheduledRequestUrl}")]
public interface IHangfireApi
{
@@ -14,4 +15,8 @@ public interface IHangfireApi
/// <returns></returns>
[Post("api/hangfire/sap/person/no")]
Task<DefaultApiResult> SyncSapPersonAsync(SapNoRequest request);
}
[Auth]
[Post("api/hangfire/assignment-generate")]
Task<DefaultApiResult> GeneratePermissionsAsync(GeneratePermissionIdRequest request);
}

View File

@@ -0,0 +1,7 @@
namespace Dlhis.Scheduled.Api.Request
{
public class GeneratePermissionIdRequest
{
public long Id { get; set; }
}
}