mirror of https://github.com/abpframework/abp.git
14 changed files with 2078 additions and 35 deletions
File diff suppressed because it is too large
@ -0,0 +1,23 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Volo.CmsKit.Migrations |
|||
{ |
|||
public partial class BlogFeatureEnabledColumnRename : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.RenameColumn( |
|||
name: "Enabled", |
|||
table: "CmsBlogFeatures", |
|||
newName: "IsEnabled"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.RenameColumn( |
|||
name: "IsEnabled", |
|||
table: "CmsBlogFeatures", |
|||
newName: "Enabled"); |
|||
} |
|||
} |
|||
} |
|||
@ -1,22 +1,20 @@ |
|||
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 class DefaultBlogFeatureProvider : IDefaultBlogFeatureProvider, ITransientDependency |
|||
{ |
|||
public Task<List<BlogFeature>> GetDefaultFeaturesAsync(Guid blogId) |
|||
public virtual 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), |
|||
new BlogFeature(blogId, BlogPostConsts.TagsFeatureName), |
|||
}); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue