SPMS_API/SPMS.Application/DependencyInjection.cs
SEAN ef6d71a921 feat: 메시지 미리보기 API 구현 (#120)
- POST /v1/in/message/preview 엔드포인트 추가
- MessageService: 메시지 조회 → 변수 치환 → 미리보기 데이터 반환
- IMessageService 인터페이스 정의 (향후 CRUD 확장용)

Closes #120
2026-02-10 17:27:56 +09:00

28 lines
1.1 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>();
return services;
}
}