mirror of https://github.com/abpframework/abp.git
11 changed files with 32 additions and 41 deletions
@ -1,17 +1,7 @@ |
|||
using JetBrains.Annotations; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.CmsKit.Comments; |
|||
|
|||
namespace Volo.CmsKit.Comments |
|||
namespace Volo.CmsKit.Comments |
|||
{ |
|||
public interface ICommentEntityTypeDefinitionStore |
|||
public interface ICommentEntityTypeDefinitionStore : IEntityTypeDefinitionStore<CommentEntityTypeDefinition> |
|||
{ |
|||
Task<CommentEntityTypeDefinition> GetDefinitionAsync([NotNull] string entityType); |
|||
|
|||
Task<bool> IsDefinedAsync([NotNull] string entityType); |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,14 @@ |
|||
using JetBrains.Annotations; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.CmsKit |
|||
{ |
|||
public interface IEntityTypeDefinitionStore<TPolicyDefinition> : ITransientDependency |
|||
where TPolicyDefinition : class |
|||
{ |
|||
Task<TPolicyDefinition> GetAsync([NotNull] string entityType); |
|||
|
|||
Task<bool> IsDefinedAsync([NotNull] string entityType); |
|||
} |
|||
} |
|||
@ -1,12 +1,7 @@ |
|||
using JetBrains.Annotations; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.CmsKit.MediaDescriptors |
|||
namespace Volo.CmsKit.MediaDescriptors |
|||
{ |
|||
public interface IMediaDescriptorDefinitionStore |
|||
public interface IMediaDescriptorDefinitionStore : IEntityTypeDefinitionStore<MediaDescriptorDefinition> |
|||
{ |
|||
Task<bool> IsDefinedAsync([NotNull] string entityType); |
|||
|
|||
Task<MediaDescriptorDefinition> GetDefinitionAsync([NotNull] string entityType); |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue