mirror of https://github.com/abpframework/abp.git
Browse Source
- Refactor CmsKitMarkedItemOptions to prevent duplicate entity type definitions - Enhance exception handling in DefaultMarkedItemDefinitionStore - Remove redundant GetAsync method from MarkedItemManager - Remove IQueryable exposure from IUserMarkedItemRepository - Align EntityTagRepository approach with other repositories - Rename GetForToggleAsync to GetAsync or GetForUserAsync in IMarkedItemPublicAppService These changes improve code clarity, consistency, and adherence to ABP.io best practices.pull/20056/head
23 changed files with 102 additions and 109 deletions
@ -0,0 +1,16 @@ |
|||||
|
using JetBrains.Annotations; |
||||
|
using Volo.Abp; |
||||
|
|
||||
|
namespace Volo.CmsKit.MarkedItems; |
||||
|
|
||||
|
public class DuplicateMarkedItemDefinitionException : BusinessException |
||||
|
{ |
||||
|
public DuplicateMarkedItemDefinitionException([NotNull] string entityType) |
||||
|
{ |
||||
|
EntityType = Check.NotNullOrEmpty(entityType, nameof(entityType)); |
||||
|
Code = CmsKitErrorCodes.MarkedItems.DuplicateMarkedItem; |
||||
|
WithData(nameof(EntityType), EntityType); |
||||
|
} |
||||
|
|
||||
|
public string EntityType { get; } |
||||
|
} |
||||
@ -0,0 +1,16 @@ |
|||||
|
using JetBrains.Annotations; |
||||
|
using Volo.Abp; |
||||
|
|
||||
|
namespace Volo.CmsKit.MarkedItems; |
||||
|
|
||||
|
public class MarkedItemDefinitionNotFoundException : BusinessException |
||||
|
{ |
||||
|
public MarkedItemDefinitionNotFoundException([NotNull] string entityType) |
||||
|
{ |
||||
|
EntityType = Check.NotNullOrEmpty(entityType, nameof(entityType)); |
||||
|
Code = CmsKitErrorCodes.MarkedItems.MarkedItemDefinitionNotFound; |
||||
|
WithData(nameof(EntityType), EntityType); |
||||
|
} |
||||
|
|
||||
|
public string EntityType { get; } |
||||
|
} |
||||
Loading…
Reference in new issue