18 lines
462 B
C#
18 lines
462 B
C#
using Dlhis.Sys.Api.Request;
|
|
using Dlhis.Sys.Api.Response;
|
|
using Kurisu.RemoteCall.Attributes;
|
|
|
|
namespace Dlhis.Sys.Api;
|
|
|
|
[RequestResultHandler]
|
|
[EnableRemoteClient(Name = "sys-service", BaseUrl = "${InternalRequest:SysRequestUrl}")]
|
|
public interface IUserApi
|
|
{
|
|
[Auth]
|
|
[Get("/api/users")]
|
|
Task<UserResponse> GetUserByIdAsync(int id);
|
|
|
|
[Auth]
|
|
[Post("/api/users/by-ids")]
|
|
Task<List<UserResponse>> GetUserByIdsAsync(IdsRequest request);
|
|
} |