forked from ddrilling/AsbCloudServer
Renamed DrillParamsController methods
This commit is contained in:
parent
f7fedb16e8
commit
e34bb4b554
@ -10,7 +10,7 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Контроллер для режимов бурения
|
/// Контроллер для режимов бурения
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Route("api/drillParams")]
|
[Route("api/drillParams/{idWell}")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
public class DrillParamsController : ControllerBase
|
public class DrillParamsController : ControllerBase
|
||||||
{
|
{
|
||||||
@ -32,9 +32,9 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
/// <param name="endDepth"> Конечная глубина </param>
|
/// <param name="endDepth"> Конечная глубина </param>
|
||||||
/// <param name="token"> Токен отмены задачи </param>
|
/// <param name="token"> Токен отмены задачи </param>
|
||||||
/// <returns> Значения по умолчанию для режимов бурения </returns>
|
/// <returns> Значения по умолчанию для режимов бурения </returns>
|
||||||
[HttpGet("idWell/autoParams")]
|
[HttpGet("/autoParams")]
|
||||||
[ProducesResponseType(typeof(DrillParamsDto), (int) System.Net.HttpStatusCode.OK)]
|
[ProducesResponseType(typeof(DrillParamsDto), (int) System.Net.HttpStatusCode.OK)]
|
||||||
public async Task<IActionResult> GetDefaultDrillParamsAsync(int idWell,
|
public async Task<IActionResult> GetDefaultAsync(int idWell,
|
||||||
double startDepth, double endDepth, CancellationToken token = default)
|
double startDepth, double endDepth, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
var idCompany = User.GetCompanyId();
|
var idCompany = User.GetCompanyId();
|
||||||
@ -55,9 +55,9 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
/// <param name="idWell"> id скважины </param>
|
/// <param name="idWell"> id скважины </param>
|
||||||
/// <param name="token"> Токен отмены задачи </param>
|
/// <param name="token"> Токен отмены задачи </param>
|
||||||
/// <returns> Список параметров для режимов бурения на скважине </returns>
|
/// <returns> Список параметров для режимов бурения на скважине </returns>
|
||||||
[HttpGet("idWell")]
|
[HttpGet]
|
||||||
[ProducesResponseType(typeof(IEnumerable<DrillParamsDto>), (int) System.Net.HttpStatusCode.OK)]
|
[ProducesResponseType(typeof(IEnumerable<DrillParamsDto>), (int) System.Net.HttpStatusCode.OK)]
|
||||||
public async Task<IActionResult> GetDrillParamsAsync(int idWell,
|
public async Task<IActionResult> GetAllAsync(int idWell,
|
||||||
CancellationToken token = default)
|
CancellationToken token = default)
|
||||||
{
|
{
|
||||||
var idCompany = User.GetCompanyId();
|
var idCompany = User.GetCompanyId();
|
||||||
@ -78,9 +78,9 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
/// <param name="drillParamsDto"> Параметры режимов бурений для секции</param>
|
/// <param name="drillParamsDto"> Параметры режимов бурений для секции</param>
|
||||||
/// <param name="token"> Токен отмены задачи </param>
|
/// <param name="token"> Токен отмены задачи </param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost("idWell")]
|
[HttpPost]
|
||||||
[ProducesResponseType(typeof(int), (int) System.Net.HttpStatusCode.OK)]
|
[ProducesResponseType(typeof(int), (int) System.Net.HttpStatusCode.OK)]
|
||||||
public async Task<IActionResult> SaveDrillParamsAsync(int idWell,
|
public async Task<IActionResult> SaveAsync(int idWell,
|
||||||
DrillParamsDto drillParamsDto, CancellationToken token = default)
|
DrillParamsDto drillParamsDto, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
var idCompany = User.GetCompanyId();
|
var idCompany = User.GetCompanyId();
|
||||||
@ -101,9 +101,9 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
/// <param name="drillParamsDto"> Параметры режимов бурений для секции</param>
|
/// <param name="drillParamsDto"> Параметры режимов бурений для секции</param>
|
||||||
/// <param name="token"> Токен отмены задачи </param>
|
/// <param name="token"> Токен отмены задачи </param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPut("idWell")]
|
[HttpPut]
|
||||||
[ProducesResponseType(typeof(int), (int) System.Net.HttpStatusCode.OK)]
|
[ProducesResponseType(typeof(int), (int) System.Net.HttpStatusCode.OK)]
|
||||||
public async Task<IActionResult> EditDrillParamsAsync(int idWell,
|
public async Task<IActionResult> EditAsync(int idWell,
|
||||||
DrillParamsDto drillParamsDto, CancellationToken token = default)
|
DrillParamsDto drillParamsDto, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
var idCompany = User.GetCompanyId();
|
var idCompany = User.GetCompanyId();
|
||||||
@ -125,9 +125,9 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
/// <param name="drillParamsId"> Id объекта параметров режима бурений для секции</param>
|
/// <param name="drillParamsId"> Id объекта параметров режима бурений для секции</param>
|
||||||
/// <param name="token"> Токен отмены задачи </param>
|
/// <param name="token"> Токен отмены задачи </param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpDelete("idWell")]
|
[HttpDelete]
|
||||||
[ProducesResponseType(typeof(int), (int) System.Net.HttpStatusCode.OK)]
|
[ProducesResponseType(typeof(int), (int) System.Net.HttpStatusCode.OK)]
|
||||||
public async Task<IActionResult> DeleteDrillParamsAsync(int idWell,
|
public async Task<IActionResult> DeleteAsync(int idWell,
|
||||||
int drillParamsId, CancellationToken token = default)
|
int drillParamsId, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
var idCompany = User.GetCompanyId();
|
var idCompany = User.GetCompanyId();
|
||||||
|
@ -248,7 +248,6 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Возвращает шаблон файла импорта
|
/// Возвращает шаблон файла импорта
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="token"> Токен отмены задачи </param>
|
|
||||||
/// <returns>Запрашиваемый файл</returns>
|
/// <returns>Запрашиваемый файл</returns>
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route("tamplate")]
|
[Route("tamplate")]
|
||||||
|
Loading…
Reference in New Issue
Block a user