2169e592e6
Поправлены тесты. Удален не используемый интерфейс IPersistenceDbContext.
24 lines
878 B
C#
24 lines
878 B
C#
using Persistence.Models;
|
|
using Refit;
|
|
|
|
namespace Persistence.Client.Clients;
|
|
public interface ITimestampedSetClient
|
|
{
|
|
private const string baseUrl = "/api/TimestampedSet/{idDiscriminator}";
|
|
|
|
[Post(baseUrl)]
|
|
Task<IApiResponse<int>> InsertRange(Guid idDiscriminator, IEnumerable<TimestampedSetDto> sets);
|
|
|
|
[Get(baseUrl)]
|
|
Task<IApiResponse<IEnumerable<TimestampedSetDto>>> Get(Guid idDiscriminator, [Query] DateTimeOffset? geTimestamp, [Query] IEnumerable<string>? props, int skip, int take);
|
|
|
|
[Get($"{baseUrl}/last")]
|
|
Task<IApiResponse<IEnumerable<TimestampedSetDto>>> GetLast(Guid idDiscriminator, [Query] IEnumerable<string>? props, int take);
|
|
|
|
[Get($"{baseUrl}/count")]
|
|
Task<IApiResponse<int>> Count(Guid idDiscriminator);
|
|
|
|
[Get($"{baseUrl}/datesRange")]
|
|
Task<IApiResponse<DatesRangeDto?>> GetDatesRange(Guid idDiscriminator);
|
|
}
|