Files
jinko.yikatong/Src/Dlhis.Scheduled.Api/IHangfireApi.cs
2024-07-17 16:48:30 +08:00

23 lines
651 B
C#

using Dlhis.Scheduled.Api.Request;
using Kurisu.RemoteCall.Attributes;
using Kurisu.RemoteCall.Default;
namespace Dlhis.Scheduled.Api;
[RequestLog]
[EnableRemoteClient(Name = "hangfire-service", BaseUrl = "${InternalRequest:ScheduledRequestUrl}")]
public interface IHangfireApi
{
/// <summary>
/// 同步人员
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[Post("api/hangfire/sap/person/no")]
Task<DefaultApiResult> SyncSapPersonAsync(SapNoRequest request);
[Post("api/hangfire/sap/face")]
Task<DefaultApiResult> SyncFaceToSapAsync(FaceUploadToSapRequest request);
}