fix: Исправил тип параметра fullname в методе SearchEmployees и добавил комментарий к полю _employees
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 1m0s
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 1m0s
This commit is contained in:
@@ -45,7 +45,7 @@ public class ScheduleController(ModeusService modeusService, ModeusEmployeeServi
|
||||
/// <response code="503">Сервис сотрудников не инициализирован</response>
|
||||
[HttpGet]
|
||||
[Route("searchemployee")]
|
||||
public async Task<IActionResult> SearchEmployees(string fullname = "")
|
||||
public async Task<IActionResult> SearchEmployees(string? fullname)
|
||||
{
|
||||
if (!modeusEmployeeService.IsInitialized())
|
||||
return StatusCode(503, "Сервис сотрудников не инициализирован, попробуйте позже.");
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace SfeduSchedule.Services;
|
||||
public class ModeusEmployeeService(ISchedulerFactory schedulerFactory)
|
||||
: IHostedService
|
||||
{
|
||||
private Dictionary<string, (string, List<string>)> _employees = []; //
|
||||
private Dictionary<string, (string, List<string>)> _employees = []; // ФИО (ИД, Список должностей)
|
||||
private Task? _backgroundTask;
|
||||
private CancellationTokenSource? _cts;
|
||||
private readonly string _employeesFilePath = Path.Combine(Path.Combine(AppContext.BaseDirectory, AppConsts.DataFolderName), AppConsts.EmployeesFileName);
|
||||
|
||||
Reference in New Issue
Block a user