Browse Source

fix: Fix the error code in the notification module

pull/1445/head
colin 3 days ago
parent
commit
3b8900c615
  1. 6
      aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Domain.Shared/LINGYUN/Abp/Notifications/AbpNotificationsDomainSharedModule.cs

6
aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Domain.Shared/LINGYUN/Abp/Notifications/AbpNotificationsDomainSharedModule.cs

@ -1,5 +1,6 @@
using LINGYUN.Abp.Notifications.Localization;
using Volo.Abp.Localization;
using Volo.Abp.Localization.ExceptionHandling;
using Volo.Abp.Modularity;
using Volo.Abp.Users;
using Volo.Abp.VirtualFileSystem;
@ -24,5 +25,10 @@ public class AbpNotificationsDomainSharedModule : AbpModule
.Get<NotificationsResource>()
.AddVirtualJson("/LINGYUN/Abp/Notifications/Localization/DomainShared");
});
Configure<AbpExceptionLocalizationOptions>(options =>
{
options.MapCodeNamespace(NotificationsErrorCodes.Namespace, typeof(NotificationsResource));
});
}
}

Loading…
Cancel
Save