forked from ddrilling/AsbCloudServer
Права, разрешение на получение отчетов drill test
This commit is contained in:
parent
88e2afc1b2
commit
f11d1b0f2e
@ -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"},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user