mirror of https://github.com/abpframework/abp.git
4 changed files with 54 additions and 12 deletions
@ -0,0 +1,23 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
|
namespace Volo.CmsKit.Blogs |
||||
|
{ |
||||
|
public class DefaultDefaultBlogFeatureProvider : IDefaultBlogFeatureProvider, ITransientDependency |
||||
|
{ |
||||
|
public Task<List<BlogFeature>> GetDefaultFeaturesAsync(Guid blogId) |
||||
|
{ |
||||
|
return Task.FromResult(new List<BlogFeature> |
||||
|
{ |
||||
|
new BlogFeature(blogId, BlogPostConsts.CommentsFeatureName), |
||||
|
new BlogFeature(blogId, BlogPostConsts.ReactionsFeatureName), |
||||
|
new BlogFeature(blogId, BlogPostConsts.RatingsFeatureName), |
||||
|
new BlogFeature(blogId, BlogPostConsts.RatingsFeatureName), |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.CmsKit.Blogs; |
||||
|
|
||||
|
namespace Volo.CmsKit.Blogs |
||||
|
{ |
||||
|
public interface IDefaultBlogFeatureProvider |
||||
|
{ |
||||
|
Task<List<BlogFeature>> GetDefaultFeaturesAsync(Guid blogId); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue