fix 优化任务分配速度
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Dlhis.Scheduled.Api.Request
|
||||
{
|
||||
public class GeneratePermissionIdRequest
|
||||
{
|
||||
public long Id { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user