feat(api, dal): в SettingsFromDb добавлен параметр WeekendCacheTtl - время кэша для выходных. Доработан сервис WeekendDayService с учетом кэша. В апи добавлен контроллер по управлению выходными днями WeekendController
This commit is contained in:
3073
PARR.DAL/Migrations/20240917000125_tblSettingsAddWeekendCacheTtl.Designer.cs
generated
Normal file
3073
PARR.DAL/Migrations/20240917000125_tblSettingsAddWeekendCacheTtl.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblSettingsAddWeekendCacheTtl : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "Settings",
|
||||
columns: new[] { "Name", "Description", "Value" },
|
||||
values: new object[] { "WeekendCacheTtl", "Время хранения в кэше данных о выходных и рабочих днях", "01:00:00" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Settings",
|
||||
keyColumn: "Name",
|
||||
keyValue: "WeekendCacheTtl");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2208,6 +2208,12 @@ namespace PARR.DAL.Migrations
|
||||
Name = "EsppRobotAccountTimeZoneHour",
|
||||
Description = "Таймзона УЗ роботов в ЕСПП, в часах (может быть положительная и отрицательная)",
|
||||
Value = "3"
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "WeekendCacheTtl",
|
||||
Description = "Время хранения в кэше данных о выходных и рабочих днях",
|
||||
Value = "01:00:00"
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user