2024-02-15 12:00:17 +05:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
2024-02-01 16:37:03 +05:00
|
|
|
using AsbCloudApp.Data;
|
2024-02-15 12:00:17 +05:00
|
|
|
using AsbCloudApp.Requests.ParserOptions;
|
|
|
|
using AsbCloudApp.Services;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
2024-02-01 16:37:03 +05:00
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
namespace AsbCloudWebApi.Controllers.Interfaces;
|
|
|
|
|
2024-02-15 12:00:17 +05:00
|
|
|
public interface IWellControllerWithParser<TDto, in TOptions>
|
2024-02-01 16:37:03 +05:00
|
|
|
where TDto : class, IId
|
2024-02-15 12:00:17 +05:00
|
|
|
where TOptions : class, IParserOptionsRequest
|
2024-02-01 16:37:03 +05:00
|
|
|
{
|
2024-02-15 12:00:17 +05:00
|
|
|
IParserService<TDto, TOptions> ParserService { get; }
|
|
|
|
|
|
|
|
Task<ActionResult<ParserResultDto<TDto>>> Parse(int idWell,
|
|
|
|
[FromForm] IFormFileCollection files,
|
|
|
|
CancellationToken token);
|
2024-02-01 16:37:03 +05:00
|
|
|
|
|
|
|
IActionResult GetTemplate();
|
|
|
|
}
|