forked from ddrilling/AsbCloudServer
Fix plan trajectory template file path.
Remove permissions from plan trajectory.
This commit is contained in:
parent
c94a2f2904
commit
496f8d18fb
@ -22,7 +22,7 @@ namespace AsbCloudInfrastructure.Services.Trajectory
|
||||
private readonly IPlannedTrajectoryRepository plannedTrajectoryService;
|
||||
|
||||
private const string templateFileName = "PlannedTrajectoryTemplate.xlsx";
|
||||
private const string usingTemplateFile = "AsbCloudInfrastructure.Services.PlannedTrajectory";
|
||||
private const string usingTemplateFile = "AsbCloudInfrastructure.Services.Trajectory";
|
||||
private const string sheetNamePlannedTrajectory = "Плановая траектория";
|
||||
private const int headerRowsCount = 2;
|
||||
private const int ColumnWellboreDepth = 1;
|
||||
|
@ -59,7 +59,6 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <returns>Запрашиваемый файл</returns>
|
||||
[HttpGet]
|
||||
[Route("export")]
|
||||
[Permission]
|
||||
[ProducesResponseType(typeof(PhysicalFileResult), (int)System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> ExportAsync([FromRoute] int idWell, CancellationToken token = default)
|
||||
{
|
||||
@ -80,7 +79,6 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="token"> Токен отмены задачи </param>
|
||||
/// <returns>количество успешно записанных строк в БД</returns>
|
||||
[HttpPost]
|
||||
[Permission]
|
||||
[Route("import/{deleteBeforeImport}")]
|
||||
[ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> ImportAsync(int idWell,
|
||||
@ -120,7 +118,6 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <returns>Список добавленных координат плановой траектории</returns>
|
||||
[HttpGet]
|
||||
[Route("getRows")]
|
||||
[Permission]
|
||||
[ProducesResponseType(typeof(IEnumerable<PlannedTrajectoryDto>), (int)System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> GetAsync([FromRoute] int idWell, CancellationToken token = default)
|
||||
{
|
||||
@ -140,7 +137,6 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <returns>количество успешно записанных строк в БД</returns>
|
||||
[HttpPost]
|
||||
[Route("addRow")]
|
||||
[Permission]
|
||||
[ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> AddAsync(int idWell, [FromBody] PlannedTrajectoryDto row,
|
||||
CancellationToken token = default)
|
||||
@ -165,7 +161,6 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <returns>количество успешно записанных строк в БД</returns>
|
||||
[HttpPost]
|
||||
[Route("addRangeRows")]
|
||||
[Permission]
|
||||
[ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> AddRangeAsync(int idWell, [FromBody] IEnumerable<PlannedTrajectoryDto> rows,
|
||||
CancellationToken token = default)
|
||||
@ -193,7 +188,6 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="token"></param>
|
||||
/// <returns>количество успешно обновленных строк в БД</returns>
|
||||
[HttpPut("{idRow}")]
|
||||
[Permission]
|
||||
[ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> UpdateAsync(int idWell, int idRow,
|
||||
[FromBody] PlannedTrajectoryDto row, CancellationToken token = default)
|
||||
@ -218,7 +212,6 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="token"></param>
|
||||
/// <returns>количество успешно удаленных строк из БД</returns>
|
||||
[HttpDelete("{idRow}")]
|
||||
[Permission]
|
||||
[ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> DeleteAsync(int idWell, int idRow, CancellationToken token = default)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user