DD.WellWorkover.Cloud/AsbCloudWebApi.IntegrationTests/Clients/IProcessMapPlanDrillingClient.cs

46 lines
1.6 KiB
C#
Raw Normal View History

2024-02-09 11:33:03 +05:00
using AsbCloudApp.Data;
2024-02-21 15:08:51 +05:00
using AsbCloudApp.Data.ProcessMaps;
2024-01-19 17:49:09 +05:00
using AsbCloudApp.Requests;
using Refit;
namespace AsbCloudWebApi.IntegrationTests.Clients;
2024-05-21 09:12:22 +05:00
public interface IProcessMapPlanDrillingClient<TDto> where TDto : ProcessMapPlanBaseDto
2024-01-19 17:49:09 +05:00
{
private const string BaseRoute = "/api/well/{idWell}/ProcessMapPlanDrilling";
[Post(BaseRoute)]
2024-05-21 09:12:22 +05:00
Task<IApiResponse<int>> InsertRange(int idWell, [Body] IEnumerable<TDto> dtos);
2024-01-19 17:49:09 +05:00
[Post($"{BaseRoute}/replace")]
2024-05-21 09:12:22 +05:00
Task<IApiResponse<int>> ClearAndInsertRange(int idWell, [Body] IEnumerable<TDto> dtos);
2024-01-19 17:49:09 +05:00
[Delete(BaseRoute)]
2024-01-20 15:38:37 +05:00
Task<IApiResponse<int>> DeleteRange(int idWell, [Body] IEnumerable<int> ids);
2024-01-19 17:49:09 +05:00
[Delete($"{BaseRoute}/clear")]
Task<IApiResponse<int>> Clear(int idWell);
2024-01-19 17:49:09 +05:00
[Get(BaseRoute)]
2024-05-21 09:12:22 +05:00
Task<IApiResponse<IEnumerable<TDto>>> Get(int idWell);
[Get($"{BaseRoute}/changelogByMoment")]
2024-05-21 09:12:22 +05:00
Task<IApiResponse<IEnumerable<ChangeLogDto<TDto>>>> Get(int idWell, DateTimeOffset? moment);
[Get("/api/telemetry/{uid}/ProcessMapPlanDrilling")]
Task<IApiResponse<IEnumerable<ChangeLogDto<TDto>>>> Get(string uid, DateTimeOffset? updateFrom);
2024-01-19 17:49:09 +05:00
[Get($"{BaseRoute}/changeLogForDate")]
2024-05-21 09:12:22 +05:00
Task<IApiResponse<IEnumerable<TDto>>> GetChangeLog(int idWell, DateOnly? date);
2024-01-19 17:49:09 +05:00
[Get($"{BaseRoute}/dates")]
2024-01-20 15:38:37 +05:00
Task<IApiResponse<IEnumerable<DateOnly>>> GetDatesChange(int idWell);
2024-01-19 17:49:09 +05:00
[Put(BaseRoute)]
2024-05-21 09:12:22 +05:00
Task<IApiResponse<int>> UpdateOrInsertRange(int idWell, IEnumerable<TDto> dtos);
2024-02-09 11:33:03 +05:00
[Multipart]
[Post(BaseRoute + "/parse")]
2024-05-21 09:12:22 +05:00
Task<IApiResponse<ParserResultDto<TDto>>> Parse(int idWell, [AliasAs("file")] StreamPart stream);
2024-01-19 17:49:09 +05:00
}