招生计划、资格、录取、分数线及报到公示
成绩单 HMAC 防伪验真 录取通知书 HMAC 防伪验真 防伪码常量时间比较 生产环境文书密钥强度检查 旧文书防伪码完全兼容
This commit is contained in:
1 parent
38e42ad734
commit
017cacc6f9
14 files changed
+824
-6
No files matched your search
@@ -7,4 +7,8 @@ public interface IPublicQueryService
|
||||
Task<JsonObject> GetHomeAsync(CancellationToken cancellationToken);
|
||||
|
||||
Task<JsonObject?> GetNoticeAsync(string id, CancellationToken cancellationToken);
|
||||
|
||||
Task<JsonObject> GetAnnouncementsAsync(CancellationToken cancellationToken);
|
||||
|
||||
Task<JsonObject?> VerifyDocumentAsync(string code, CancellationToken cancellationToken);
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using Eis.Application.Public;
|
||||
using Eis.Infrastructure.Data;
|
||||
using Eis.Infrastructure.Public;
|
||||
using Eis.Infrastructure.Security;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Eis.Infrastructure;
|
||||
@@ -9,10 +10,13 @@ public static class DependencyInjection
|
||||
{
|
||||
public static IServiceCollection AddEisInfrastructure(
|
||||
this IServiceCollection services,
|
||||
DatabaseOptions databaseOptions)
|
||||
DatabaseOptions databaseOptions,
|
||||
DocumentVerificationOptions documentVerificationOptions)
|
||||
{
|
||||
services.AddSingleton(databaseOptions);
|
||||
services.AddSingleton<IRelationalConnectionFactory, RelationalConnectionFactory>();
|
||||
services.AddSingleton(documentVerificationOptions);
|
||||
services.AddSingleton<DocumentVerificationCodeService>();
|
||||
services.AddScoped<IPublicQueryService, PublicQueryService>();
|
||||
return services;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ public static class MigrationFeatureCatalog
|
||||
{
|
||||
public static IReadOnlyList<MigrationFeature> Current { get; } =
|
||||
[
|
||||
new(FeatureArea.Public, false, "/api/public/home, /api/public/notices/{id}(部分原生)"),
|
||||
new(FeatureArea.Public, true, "/api/public"),
|
||||
new(FeatureArea.Authentication, false, "/api/auth"),
|
||||
new(FeatureArea.Candidate, false, "/api/candidate"),
|
||||
new(FeatureArea.Administration, false, "/api/admin"),
|
||||
|
||||
Loaded 3 of 14 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user