using Microsoft.Extensions.DependencyInjection;
using TakeoutSaaS.Application.Dictionary.Abstractions;
using TakeoutSaaS.Application.Dictionary.Services;

namespace TakeoutSaaS.Application.Dictionary.Extensions;

/// <summary>
/// 字典应用服务注册扩展。
/// </summary>
public static class DictionaryServiceCollectionExtensions
{
    /// <summary>
    /// 注册字典模块应用层组件。
    /// </summary>
    public static IServiceCollection AddDictionaryApplication(this IServiceCollection services)
    {
        services.AddScoped<IDictionaryAppService, DictionaryAppService>();
        return services;
    }
}
