- Domain: NotificationCategory enum, Notification entity, INotificationRepository - Infrastructure: NotificationConfiguration, NotificationRepository, AppDbContext/DI 등록 - Migration: AddNotificationTable 생성 및 적용 - Application: DTO 7개, INotificationService, NotificationService, DI 등록 - API: NotificationController (summary, list, read, read-all) Closes #247
31 lines
1.3 KiB
C#
31 lines
1.3 KiB
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using SPMS.Application.Interfaces;
|
|
using SPMS.Application.Services;
|
|
|
|
namespace SPMS.Application;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|
{
|
|
// Application Services
|
|
services.AddScoped<IAuthService, AuthService>();
|
|
services.AddScoped<IAccountService, AccountService>();
|
|
services.AddScoped<IServiceManagementService, ServiceManagementService>();
|
|
services.AddScoped<INoticeService, NoticeService>();
|
|
services.AddScoped<IBannerService, BannerService>();
|
|
services.AddScoped<IFaqService, FaqService>();
|
|
services.AddScoped<IAppConfigService, AppConfigService>();
|
|
services.AddScoped<IDeviceService, DeviceService>();
|
|
services.AddScoped<IFileService, FileService>();
|
|
services.AddScoped<IPushService, PushService>();
|
|
services.AddSingleton<IMessageValidationService, MessageValidationService>();
|
|
services.AddScoped<IMessageService, MessageService>();
|
|
services.AddScoped<IStatsService, StatsService>();
|
|
services.AddScoped<ITagService, TagService>();
|
|
services.AddScoped<INotificationService, NotificationService>();
|
|
|
|
return services;
|
|
}
|
|
}
|