Права, разрешение на получение отчетов drill test

This commit is contained in:
Olga Nemt 2023-10-20 17:01:17 +05:00
parent 88e2afc1b2
commit f11d1b0f2e
2 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,8 @@
new() { Id = 527, Name = "Manual.delete", Description = "Разрешение на удаление инструкций"},
new (){ Id = 528, Name="WellContact.delete", Description="Разрешение на удаление контакта"},
new (){ Id = 529, Name="DrillTestReport.get", Description="Разрешение на получение отчетов drill test"},
};
}
}

View File

@ -38,6 +38,7 @@ public class DrillTestReportController : ControllerBase
/// <param name="cancellationToken"></param>
/// <returns></returns>
[HttpGet]
[Permission]
[ProducesResponseType(typeof(PhysicalFileResult), (int)HttpStatusCode.OK, "application/octet-stream")]
[ProducesResponseType(StatusCodes.Status204NoContent)]
public async Task<IActionResult> GenerateReportAsync([FromRoute] int idWell,
@ -60,6 +61,7 @@ public class DrillTestReportController : ControllerBase
/// <param name="cancellationToken"></param>
/// <returns></returns>
[HttpGet("all")]
[Permission]
[ProducesResponseType(typeof(PaginationContainer<AutoGeneratedDailyReportInfoDto>), (int)HttpStatusCode.OK)]
public async Task<IActionResult> GetListAsync([FromRoute][Required] int idWell,
[FromQuery] FileReportRequest request,