Files
tiku-backend.net/Tiku.Infrastructure/Modules/CommerceModule.cs
xiong c497a3ca8d
Some checks failed
ci / release-gate (push) Has been cancelled
清理代码
2026-08-03 12:31:39 +08:00

34 lines
1.6 KiB
C#

using Microsoft.Extensions.DependencyInjection;
using Tiku.Application.Commerce;
using Tiku.Application.Growth;
using Tiku.Application.Notifications;
using Tiku.Application.Points;
using Tiku.Infrastructure.Commerce;
using Tiku.Infrastructure.Growth;
using Tiku.Infrastructure.Notifications;
using Tiku.Infrastructure.Points;
namespace Tiku.Infrastructure;
internal static class CommerceModule
{
internal static IServiceCollection AddCommerceModule(this IServiceCollection services)
{
services.AddScoped<ICommerceService, CommerceService>();
services.AddScoped<ICommerceAdminService, CommerceAdminService>();
services.AddScoped<IPointService, PointService>();
services.AddScoped<IReferralQrcodeGenerator, ReferralQrcodeGenerator>();
services.AddScoped<IReferralService, ReferralService>();
services.AddScoped<ICrmService, CrmService>();
services.AddScoped<ICommissionService, CommissionService>();
services.AddScoped<INotificationProvider, InAppNotificationProvider>();
services.AddSingleton<ITenantSecretProtector, TenantSecretProtector>();
services.AddScoped<ITenantSecretService, TenantSecretService>();
services.AddScoped<IPaymentProviderConfigService, PaymentProviderConfigService>();
services.AddScoped<IPaymentProviderGateway, PaymentProviderGateway>();
services.AddScoped<IPaymentProvider, ManualPaymentProvider>();
services.AddScoped<IPaymentProvider, WechatPayProvider>();
services.AddScoped<IPaymentProvider, AlipayProvider>();
return services;
}
}