- POST /v1/in/message/preview 엔드포인트 추가 - MessageService: 메시지 조회 → 변수 치환 → 미리보기 데이터 반환 - IMessageService 인터페이스 정의 (향후 CRUD 확장용) Closes #120
28 lines
1.1 KiB
C#
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;
|
|
}
|
|
}
|