feat(bll,dal,common): в common - DateResolver - проверка даты на текущие сутки относительно часового пояса МСК. Dal - EsppScheduleTransformService - рассчет NextRun с учетом выходных дней
This commit is contained in:
@@ -55,6 +55,8 @@
|
||||
|
||||
public const string IsWorkDay = Base + "/tests/is-work-day/";
|
||||
|
||||
public const string GetWorkDay = Base + "/tests/get-work-day/{date}";
|
||||
|
||||
public const string paramDate = "{lastRunDate}";
|
||||
public const string paramApplicationInWorkId = "{applicationInWorkId}";
|
||||
}
|
||||
|
||||
@@ -103,6 +103,15 @@ namespace PARR.API.Controllers.V1
|
||||
}
|
||||
|
||||
|
||||
//[HttpGet(ApiRoutes.Test.GetWorkDay)]
|
||||
//public async Task<IActionResult> GetWorkDay([FromRoute] DateTimeOffset date)
|
||||
//{
|
||||
// var result = await esppScheduleTransformService.GetWorkDayAsync(date);
|
||||
|
||||
// return Ok(result);
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class CaheRequestTest
|
||||
|
||||
@@ -12,6 +12,7 @@ COPY ["CHANGELOG.md", "PARR.API/"]
|
||||
COPY ["PARR.BLL/PARR.BLL.csproj", "PARR.BLL/"]
|
||||
COPY ["PARR.DAL/PARR.DAL.csproj", "PARR.DAL/"]
|
||||
COPY ["PARR.Constants/PARR.Constants.csproj", "PARR.Constants/"]
|
||||
COPY ["PARR.Common/PARR.Common.csproj", "PARR.Common/"]
|
||||
RUN dotnet restore "PARR.API/PARR.API.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/PARR.API"
|
||||
|
||||
Reference in New Issue
Block a user