refactor(architecture): harden module boundaries
Some checks failed
ci / release-gate (push) Has been cancelled
Some checks failed
ci / release-gate (push) Has been cancelled
This commit is contained in:
@@ -18,11 +18,16 @@ internal static class AuthModule
|
||||
services.AddScoped<ISmsProvider, AliyunSmsProvider>();
|
||||
services.AddScoped<ISmsVerificationService, SmsVerificationService>();
|
||||
services.AddScoped<IWechatOAuthClient, WechatOAuthClient>();
|
||||
services.AddScoped<IAuthService, AuthService>();
|
||||
services.AddScoped<AuthServiceDependencies>();
|
||||
services.AddScoped<IPasswordLoginService, PasswordLoginService>();
|
||||
services.AddScoped<ISmsLoginService, SmsLoginService>();
|
||||
services.AddScoped<IWechatLoginService, WechatLoginService>();
|
||||
services.AddScoped<IAuthSessionService, AuthSessionService>();
|
||||
services.AddScoped<IPasswordLifecycleService, PasswordLifecycleService>();
|
||||
services.AddScoped<IAuthAdministrationService, AuthAdministrationService>();
|
||||
services.AddScoped<IOwnerActivationService, OwnerActivationService>();
|
||||
services.AddScoped<IIdentityProvider, SelfHostedIdentityProvider>();
|
||||
services.AddScoped<ICurrentIdentityQueryService, CurrentIdentityQueryService>();
|
||||
return services;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,12 @@ internal static class CommerceModule
|
||||
{
|
||||
internal static IServiceCollection AddCommerceModule(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<ICommerceService, CommerceService>();
|
||||
services.AddScoped<CommerceServiceDependencies>();
|
||||
services.AddScoped<ICommerceOrderService, CommerceOrderService>();
|
||||
services.AddScoped<ICommercePaymentService, CommercePaymentService>();
|
||||
services.AddScoped<ICommerceEntitlementService, CommerceEntitlementService>();
|
||||
services.AddScoped<ICommerceCouponService, CommerceCouponService>();
|
||||
services.AddScoped<ICommercePaymentNotificationService, CommercePaymentNotificationService>();
|
||||
services.AddScoped<CommerceAdministrationDependencies>();
|
||||
services.AddScoped<IPaymentConfigurationService, PaymentConfigurationService>();
|
||||
services.AddScoped<ICommerceOrderAdministrationService, CommerceOrderAdministrationService>();
|
||||
@@ -29,7 +34,10 @@ internal static class CommerceModule
|
||||
services.AddScoped<IBackgroundJobHandler, CommerceReconciliationJobHandler>();
|
||||
services.AddScoped<IPointService, PointService>();
|
||||
services.AddScoped<IReferralQrcodeGenerator, ReferralQrcodeGenerator>();
|
||||
services.AddScoped<IReferralService, ReferralService>();
|
||||
services.AddScoped<ReferralServiceDependencies>();
|
||||
services.AddScoped<IStudentReferralService, StudentReferralService>();
|
||||
services.AddScoped<IReferralAdministrationService, ReferralAdministrationService>();
|
||||
services.AddScoped<IReferralAnalyticsService, ReferralAnalyticsService>();
|
||||
services.AddScoped<ICrmService, CrmService>();
|
||||
services.AddScoped<ICommissionService, CommissionService>();
|
||||
services.AddScoped<INotificationProvider, InAppNotificationProvider>();
|
||||
|
||||
@@ -29,7 +29,11 @@ internal static class ContentModule
|
||||
services.AddScoped<ICatalogQueryService, CatalogQueryService>();
|
||||
services.AddScoped<ITaxonomyService, TaxonomyService>();
|
||||
services.AddScoped<IContentNavigationQueryService, ContentNavigationQueryService>();
|
||||
services.AddScoped<IContentManagementService, ContentManagementService>();
|
||||
services.AddScoped<ContentManagementDependencies>();
|
||||
services.AddScoped<IContentEntryManagementService, ContentEntryManagementService>();
|
||||
services.AddScoped<IContentNodeManagementService, ContentNodeManagementService>();
|
||||
services.AddScoped<IQuestionCollectionManagementService, QuestionCollectionManagementService>();
|
||||
services.AddScoped<IPracticeBlueprintManagementService, PracticeBlueprintManagementService>();
|
||||
services.AddScoped<DirectContentServiceDependencies>();
|
||||
services.AddScoped<IQuestionManagementService, QuestionManagementService>();
|
||||
services.AddScoped<IVocabularyManagementService, VocabularyManagementService>();
|
||||
@@ -48,7 +52,12 @@ internal static class ContentModule
|
||||
services.AddScoped<IStudyContentQueryService, StudyContentQueryService>();
|
||||
services.AddScoped<IAssetQueryService, AssetQueryService>();
|
||||
services.AddScoped<IAssetAccessService, AssetAccessService>();
|
||||
services.AddScoped<IAssetManagementService, AssetManagementService>();
|
||||
services.AddScoped<AssetManagementDependencies>();
|
||||
services.AddScoped<IAssetCatalogManagementService, AssetCatalogManagementService>();
|
||||
services.AddScoped<IAssetUploadManagementService, AssetUploadManagementService>();
|
||||
services.AddScoped<IAssetLifecycleManagementService, AssetLifecycleManagementService>();
|
||||
services.AddScoped<IAssetAuditQueryService, AssetAuditQueryService>();
|
||||
services.AddScoped<IAssetImportJobQueryService, AssetImportJobQueryService>();
|
||||
services.AddScoped<IAssetSecurityScanner, ClamAvAssetSecurityScanner>();
|
||||
services.AddScoped<IBackgroundJobHandler, ContentImportJobHandler>();
|
||||
services.AddScoped<IBackgroundJobHandler, ContentExportJobHandler>();
|
||||
|
||||
@@ -4,8 +4,8 @@ using Tiku.Application.PlatformAdmin.Operations;
|
||||
using Tiku.Application.PlatformBilling;
|
||||
using Tiku.Application.Jobs;
|
||||
using Tiku.Infrastructure.PlatformAdmin;
|
||||
using Tiku.Infrastructure.PlatformAdmin.Operations;
|
||||
using Tiku.Infrastructure.PlatformAdmin.TenantProvisioning;
|
||||
using Tiku.Infrastructure.PlatformAdmin.Operations;
|
||||
using Tiku.Infrastructure.PlatformBilling;
|
||||
|
||||
namespace Tiku.Infrastructure;
|
||||
@@ -17,6 +17,7 @@ internal static class PlatformModule
|
||||
services.AddScoped<PlatformAdministrationDependencies>();
|
||||
services.AddScoped<IPlatformDashboardService, PlatformDashboardService>();
|
||||
services.AddScoped<ITenantProvisioningAdministrationService, TenantProvisioningAdministrationService>();
|
||||
services.AddScoped<ITenantProvisioningReadinessProbe, TenantProvisioningReadinessProbe>();
|
||||
services.AddScoped<IPlatformTenantDomainService, PlatformTenantDomainService>();
|
||||
services.AddScoped<IPlatformStaffAccessService, PlatformStaffAccessService>();
|
||||
services.AddScoped<IPlatformAuditAlertService, PlatformAuditAlertService>();
|
||||
@@ -24,7 +25,11 @@ internal static class PlatformModule
|
||||
services.AddScoped<IBackgroundJobHandler, TenantExportJobHandler>();
|
||||
services.AddScoped<IPlatformOperationsQueryService, PlatformOperationsQueryService>();
|
||||
services.AddOptions<TenantProvisioningOptions>();
|
||||
services.AddScoped<IPlatformQuestionBankService, PlatformQuestionBankService>();
|
||||
services.AddScoped<IPlatformQuestionBankCatalogService, PlatformQuestionBankCatalogService>();
|
||||
services.AddScoped<IPlatformQuestionBankNodeService, PlatformQuestionBankNodeService>();
|
||||
services.AddScoped<IPlatformQuestionAdministrationService, PlatformQuestionAdministrationService>();
|
||||
services.AddScoped<IPlatformQuestionImportService, PlatformQuestionImportService>();
|
||||
services.AddScoped<IPlatformQuestionAssetService, PlatformQuestionAssetService>();
|
||||
services.AddScoped<IPlatformCrmAdminService, PlatformCrmAdminService>();
|
||||
services.AddScoped<IPlatformSmsAdminService, PlatformSmsAdminService>();
|
||||
services.AddScoped<IPlatformPaymentSettingsService, PlatformPaymentSettingsService>();
|
||||
|
||||
Reference in New Issue
Block a user