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

40 lines
1.4 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;
public interface IProcessMapPlanDrillingClient
{
private const string BaseRoute = "/api/well/{idWell}/ProcessMapPlanDrilling";
[Post(BaseRoute)]
2024-01-20 15:38:37 +05:00
Task<IApiResponse<int>> InsertRange(int idWell, [Body] IEnumerable<ProcessMapPlanDrillingDto> dtos);
2024-01-19 17:49:09 +05:00
[Post($"{BaseRoute}/replace")]
2024-01-20 15:38:37 +05:00
Task<IApiResponse<int>> ClearAndInsertRange(int idWell, [Body] IEnumerable<ProcessMapPlanDrillingDto> 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-01-20 15:38:37 +05:00
Task<IApiResponse<IEnumerable<ProcessMapPlanDrillingDto>>> Get(int idWell, ProcessMapPlanBaseRequest request);
2024-01-19 17:49:09 +05:00
[Get($"{BaseRoute}/changeLog")]
2024-01-20 15:38:37 +05:00
Task<IApiResponse<IEnumerable<ProcessMapPlanDrillingDto>>> 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)]
Task<IApiResponse<int>> UpdateOrInsertRange(int idWell, IEnumerable<ProcessMapPlanDrillingDto> dtos);
2024-02-09 11:33:03 +05:00
[Multipart]
[Post(BaseRoute + "/parse")]
2024-03-12 12:02:16 +05:00
Task<IApiResponse<ParserResultDto<ProcessMapPlanDrillingDto>>> Parse(int idWell, [AliasAs("file")] StreamPart stream);
2024-01-19 17:49:09 +05:00
}