erp-platform/api/src/Erp.Platform.Domain/PlatformDomainService.cs

46 lines
1.4 KiB
C#
Raw Normal View History

2025-11-11 19:49:52 +00:00
using Erp.Platform.ListForms;
using Erp.Platform.Localization;
2025-05-06 06:45:49 +00:00
using Microsoft.Extensions.Localization;
using Volo.Abp.Domain.Services;
using Volo.Abp.ObjectMapping;
using Volo.Abp.Settings;
using Volo.Abp.Users;
2025-11-11 19:49:52 +00:00
namespace Erp.Platform;
2025-05-06 06:45:49 +00:00
public class PlatformDomainService : DomainService
{
protected ISettingProvider SettingProvider { get; }
protected IStringLocalizer<PlatformResource> Localizer { get; }
protected ICurrentUser CurrentUser { get; }
protected IObjectMapper ObjectMapper { get; }
protected IListFormAuthorizationManager AuthManager { get; }
public PlatformDomainService(
ISettingProvider settingProvider,
IStringLocalizer<PlatformResource> localizer,
ICurrentUser currentUser,
IObjectMapper objectMapper)
{
SettingProvider = settingProvider;
Localizer = localizer;
CurrentUser = currentUser;
ObjectMapper = objectMapper;
}
public PlatformDomainService(
ISettingProvider settingProvider,
IStringLocalizer<PlatformResource> localizer,
ICurrentUser currentUser,
IObjectMapper objectMapper,
IListFormAuthorizationManager authManager = null)
{
SettingProvider = settingProvider;
Localizer = localizer;
CurrentUser = currentUser;
ObjectMapper = objectMapper;
AuthManager = authManager;
}
}
2025-11-11 19:49:52 +00:00