Implement requested Jiaowu workflow updates

This commit is contained in:
biss committed 2026-08-18 16:32:18 +08:00
1 parent 2257ce7674
commit 3450d882cf
20 files changed
+16416 -7

No files matched your search

+6
View File
@@ -8,6 +8,7 @@ using Jiaowu.Api.Infrastructure.Grades;
using Jiaowu.Api.Infrastructure.Configuration;
using Jiaowu.Api.Infrastructure.Auth;
using Jiaowu.Api.Infrastructure.Analytics;
using Jiaowu.Api.Infrastructure.AcademicCalendar;
using Jiaowu.Api.Infrastructure.Caching;
using Jiaowu.Api.Infrastructure.Exams;
using Jiaowu.Api.Infrastructure.Facilities;
@@ -321,6 +322,11 @@ builder.Services.AddHttpClient<ClickHouseAnalyticsClient>((_, client) =>
client.BaseAddress = new Uri(clickHouseAnalyticsOptions.Endpoint.TrimEnd('/') + "/");
client.Timeout = TimeSpan.FromSeconds(30);
});
builder.Services.AddHttpClient<HolidayCnClient>(client =>
{
client.BaseAddress = new Uri("https://cdn.jsdelivr.net/gh/NateScarlet/holiday-cn@master/");
client.Timeout = TimeSpan.FromSeconds(15);
});
builder.Services.Configure<OfficialDocumentOptions>(
builder.Configuration.GetSection(OfficialDocumentOptions.SectionName));
builder.Services.AddDbContextPool<AppDbContext>((services, options) =>