refactor 优化代码
This commit is contained in:
30
Src/Dlhis.Basic.Api/ISyncApi.cs
Normal file
30
Src/Dlhis.Basic.Api/ISyncApi.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Dlhis.Basic.Api.ContentHandlers;
|
||||
using Dlhis.Basic.Api.Response;
|
||||
using Kurisu.RemoteCall.Attributes;
|
||||
|
||||
namespace Dlhis.Basic.Api;
|
||||
|
||||
[RequestResultHandler]
|
||||
[EnableRemoteClient(Name = "basic-service", BaseUrl = "${InternalRequest:BasicRequestUrl}")]
|
||||
public interface ISyncApi
|
||||
{
|
||||
[Post("/api/sync/gainfo/werk")]
|
||||
[RequestContentHandler(typeof(CodeContentHandler))]
|
||||
Task SyncGainfoByWerkAsync(string code);
|
||||
|
||||
[Post("/api/sync/gainfo/user")]
|
||||
[RequestContentHandler(typeof(CodeContentHandler))]
|
||||
Task SyncGainfoByUserCodeAsync(string code);
|
||||
|
||||
[Get("/api/sync/orgs")]
|
||||
Task<SapOrganizationResponse> SyncOrganizationsAsync();
|
||||
|
||||
|
||||
[Get("/api/sync/positions")]
|
||||
Task<SapPositionResponse> GetPositionsAsync();
|
||||
|
||||
|
||||
[Post("/api/sync/businessTrips")]
|
||||
[RequestContentHandler(typeof(CodeContentHandler))]
|
||||
Task HandlerBusinessTripsAsync(string code);
|
||||
}
|
||||
Reference in New Issue
Block a user