feat: 完成租户个人中心 API 首版实现
This commit is contained in:
@@ -3,6 +3,8 @@ using MediatR;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Reflection;
|
||||
using TakeoutSaaS.Application.App.Common.Behaviors;
|
||||
using TakeoutSaaS.Application.App.Personal.Services;
|
||||
using TakeoutSaaS.Application.App.Personal.Validators;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Extensions;
|
||||
|
||||
@@ -22,6 +24,13 @@ public static class AppApplicationServiceCollectionExtensions
|
||||
services.AddValidatorsFromAssembly(Assembly.GetExecutingAssembly());
|
||||
services.AddTransient(typeof(IPipelineBehavior<,>), typeof(ValidationBehavior<,>));
|
||||
|
||||
// 1. 注册个人中心基础服务
|
||||
services.AddScoped<PersonalContextService>();
|
||||
services.AddSingleton<PersonalMaskingService>();
|
||||
services.AddSingleton<PersonalDateRangeValidator>();
|
||||
services.AddScoped<PersonalModuleStatusService>();
|
||||
services.AddScoped<PersonalAuditService>();
|
||||
|
||||
return services;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user