- Tag DTO 6종 생성 (List/Create/Update/Delete Request/Response) - ITagRepository 확장 (GetTagListAsync, CountByServiceAsync) - IDeviceRepository 확장 (GetDeviceCountsByTagIdsAsync) - ITagService/TagService 구현 (CRUD 비즈니스 로직) - TagController 신규 생성 (v1/in/tag/list, create, update, delete) - DI 등록 Closes #186
30 lines
1.2 KiB
C#
30 lines
1.2 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>();
|
|
|
|
return services;
|
|
}
|
|
}
|