mirror of https://github.com/abpframework/abp.git
482 changed files with 14459 additions and 14922 deletions
@ -1,13 +1,12 @@ |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Abp.AspNetCore.Mvc; |
|||
|
|||
namespace Volo.CmsKit.Controllers |
|||
namespace Volo.CmsKit.Controllers; |
|||
|
|||
public class HomeController : AbpController |
|||
{ |
|||
public class HomeController : AbpController |
|||
public ActionResult Index() |
|||
{ |
|||
public ActionResult Index() |
|||
{ |
|||
return Redirect("~/swagger"); |
|||
} |
|||
return Redirect("~/swagger"); |
|||
} |
|||
} |
|||
|
|||
@ -1,472 +1,456 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Volo.CmsKit.Migrations |
|||
namespace Volo.CmsKit.Migrations; |
|||
|
|||
public partial class Initial : Migration |
|||
{ |
|||
public partial class Initial : Migration |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "AbpBlobContainers", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpBlobContainers", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsBlogFeatures", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
BlogId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
FeatureName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
IsEnabled = table.Column<bool>(type: "bit", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsBlogFeatures", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsBlogs", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Slug = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsBlogs", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsComments", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
EntityType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
EntityId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Text = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: false), |
|||
RepliedCommentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsComments", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsEntityTags", |
|||
columns: table => new { |
|||
TagId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
EntityId = table.Column<string>(type: "nvarchar(450)", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsEntityTags", x => new { x.EntityId, x.TagId }); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsMediaDescriptors", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
EntityType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: false), |
|||
MimeType = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|||
Size = table.Column<long>(type: "bigint", maxLength: 2147483647, nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsMediaDescriptors", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsMenus", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsMenus", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsPages", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Title = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
Slug = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
Content = table.Column<string>(type: "nvarchar(max)", maxLength: 2147483647, nullable: true), |
|||
Script = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Style = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsPages", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsRatings", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
EntityType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
EntityId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
StarCount = table.Column<short>(type: "smallint", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsRatings", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsTags", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
EntityType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsTags", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsUserReactions", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
EntityType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
EntityId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ReactionName = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsUserReactions", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsUsers", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
Email = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Surname = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
EmailConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
PhoneNumber = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true), |
|||
PhoneNumberConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsUsers", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "AbpBlobs", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ContainerId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
Content = table.Column<byte[]>(type: "varbinary(max)", maxLength: 2147483647, nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpBlobs", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_AbpBlobs_AbpBlobContainers_ContainerId", |
|||
column: x => x.ContainerId, |
|||
principalTable: "AbpBlobContainers", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsMenuItems", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
MenuId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DisplayName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
IsActive = table.Column<bool>(type: "bit", nullable: false), |
|||
Url = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: false), |
|||
Icon = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Order = table.Column<int>(type: "int", nullable: false), |
|||
Target = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ElementId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
CssClass = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
RequiredPermissionName = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
PageId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsMenuItems", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_CmsMenuItems_CmsMenus_MenuId", |
|||
column: x => x.MenuId, |
|||
principalTable: "CmsMenus", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsBlogPosts", |
|||
columns: table => new { |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
BlogId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Title = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Slug = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
ShortDescription = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), |
|||
Content = table.Column<string>(type: "nvarchar(max)", maxLength: 2147483647, nullable: true), |
|||
CoverImageMediaId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
AuthorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsBlogPosts", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_CmsBlogPosts_CmsUsers_AuthorId", |
|||
column: x => x.AuthorId, |
|||
principalTable: "CmsUsers", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpBlobContainers_TenantId_Name", |
|||
table: "AbpBlobContainers", |
|||
columns: new[] { "TenantId", "Name" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpBlobs_ContainerId", |
|||
table: "AbpBlobs", |
|||
column: "ContainerId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpBlobs_TenantId_ContainerId_Name", |
|||
table: "AbpBlobs", |
|||
columns: new[] { "TenantId", "ContainerId", "Name" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsBlogPosts_AuthorId", |
|||
table: "CmsBlogPosts", |
|||
column: "AuthorId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsBlogPosts_Slug_BlogId", |
|||
table: "CmsBlogPosts", |
|||
columns: new[] { "Slug", "BlogId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsComments_TenantId_EntityType_EntityId", |
|||
table: "CmsComments", |
|||
columns: new[] { "TenantId", "EntityType", "EntityId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsComments_TenantId_RepliedCommentId", |
|||
table: "CmsComments", |
|||
columns: new[] { "TenantId", "RepliedCommentId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsEntityTags_TenantId_EntityId_TagId", |
|||
table: "CmsEntityTags", |
|||
columns: new[] { "TenantId", "EntityId", "TagId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsMenuItems_MenuId", |
|||
table: "CmsMenuItems", |
|||
column: "MenuId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsPages_TenantId_Slug", |
|||
table: "CmsPages", |
|||
columns: new[] { "TenantId", "Slug" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsRatings_TenantId_EntityType_EntityId_CreatorId", |
|||
table: "CmsRatings", |
|||
columns: new[] { "TenantId", "EntityType", "EntityId", "CreatorId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsTags_TenantId_Name", |
|||
table: "CmsTags", |
|||
columns: new[] { "TenantId", "Name" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsUserReactions_TenantId_CreatorId_EntityType_EntityId_ReactionName", |
|||
table: "CmsUserReactions", |
|||
columns: new[] { "TenantId", "CreatorId", "EntityType", "EntityId", "ReactionName" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsUserReactions_TenantId_EntityType_EntityId_ReactionName", |
|||
table: "CmsUserReactions", |
|||
columns: new[] { "TenantId", "EntityType", "EntityId", "ReactionName" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsUsers_TenantId_Email", |
|||
table: "CmsUsers", |
|||
columns: new[] { "TenantId", "Email" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsUsers_TenantId_UserName", |
|||
table: "CmsUsers", |
|||
columns: new[] { "TenantId", "UserName" }); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "AbpBlobContainers", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpBlobContainers", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsBlogFeatures", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
BlogId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
FeatureName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
IsEnabled = table.Column<bool>(type: "bit", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsBlogFeatures", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsBlogs", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Slug = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsBlogs", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsComments", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
EntityType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
EntityId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Text = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: false), |
|||
RepliedCommentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsComments", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsEntityTags", |
|||
columns: table => new |
|||
{ |
|||
TagId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
EntityId = table.Column<string>(type: "nvarchar(450)", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsEntityTags", x => new { x.EntityId, x.TagId }); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsMediaDescriptors", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
EntityType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: false), |
|||
MimeType = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|||
Size = table.Column<long>(type: "bigint", maxLength: 2147483647, nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsMediaDescriptors", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsMenus", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsMenus", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsPages", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Title = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
Slug = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
Content = table.Column<string>(type: "nvarchar(max)", maxLength: 2147483647, nullable: true), |
|||
Script = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Style = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsPages", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsRatings", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
EntityType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
EntityId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
StarCount = table.Column<short>(type: "smallint", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsRatings", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsTags", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
EntityType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsTags", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsUserReactions", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
EntityType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
EntityId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ReactionName = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsUserReactions", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsUsers", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
Email = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Surname = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
EmailConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
PhoneNumber = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true), |
|||
PhoneNumberConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsUsers", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "AbpBlobs", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ContainerId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
Content = table.Column<byte[]>(type: "varbinary(max)", maxLength: 2147483647, nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpBlobs", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_AbpBlobs_AbpBlobContainers_ContainerId", |
|||
column: x => x.ContainerId, |
|||
principalTable: "AbpBlobContainers", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsMenuItems", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
MenuId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DisplayName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
IsActive = table.Column<bool>(type: "bit", nullable: false), |
|||
Url = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: false), |
|||
Icon = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Order = table.Column<int>(type: "int", nullable: false), |
|||
Target = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ElementId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
CssClass = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
RequiredPermissionName = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
PageId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsMenuItems", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_CmsMenuItems_CmsMenus_MenuId", |
|||
column: x => x.MenuId, |
|||
principalTable: "CmsMenus", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "CmsBlogPosts", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
BlogId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Title = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Slug = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|||
ShortDescription = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), |
|||
Content = table.Column<string>(type: "nvarchar(max)", maxLength: 2147483647, nullable: true), |
|||
CoverImageMediaId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
AuthorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_CmsBlogPosts", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_CmsBlogPosts_CmsUsers_AuthorId", |
|||
column: x => x.AuthorId, |
|||
principalTable: "CmsUsers", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpBlobContainers_TenantId_Name", |
|||
table: "AbpBlobContainers", |
|||
columns: new[] { "TenantId", "Name" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpBlobs_ContainerId", |
|||
table: "AbpBlobs", |
|||
column: "ContainerId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpBlobs_TenantId_ContainerId_Name", |
|||
table: "AbpBlobs", |
|||
columns: new[] { "TenantId", "ContainerId", "Name" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsBlogPosts_AuthorId", |
|||
table: "CmsBlogPosts", |
|||
column: "AuthorId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsBlogPosts_Slug_BlogId", |
|||
table: "CmsBlogPosts", |
|||
columns: new[] { "Slug", "BlogId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsComments_TenantId_EntityType_EntityId", |
|||
table: "CmsComments", |
|||
columns: new[] { "TenantId", "EntityType", "EntityId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsComments_TenantId_RepliedCommentId", |
|||
table: "CmsComments", |
|||
columns: new[] { "TenantId", "RepliedCommentId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsEntityTags_TenantId_EntityId_TagId", |
|||
table: "CmsEntityTags", |
|||
columns: new[] { "TenantId", "EntityId", "TagId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsMenuItems_MenuId", |
|||
table: "CmsMenuItems", |
|||
column: "MenuId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsPages_TenantId_Slug", |
|||
table: "CmsPages", |
|||
columns: new[] { "TenantId", "Slug" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsRatings_TenantId_EntityType_EntityId_CreatorId", |
|||
table: "CmsRatings", |
|||
columns: new[] { "TenantId", "EntityType", "EntityId", "CreatorId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsTags_TenantId_Name", |
|||
table: "CmsTags", |
|||
columns: new[] { "TenantId", "Name" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsUserReactions_TenantId_CreatorId_EntityType_EntityId_ReactionName", |
|||
table: "CmsUserReactions", |
|||
columns: new[] { "TenantId", "CreatorId", "EntityType", "EntityId", "ReactionName" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsUserReactions_TenantId_EntityType_EntityId_ReactionName", |
|||
table: "CmsUserReactions", |
|||
columns: new[] { "TenantId", "EntityType", "EntityId", "ReactionName" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsUsers_TenantId_Email", |
|||
table: "CmsUsers", |
|||
columns: new[] { "TenantId", "Email" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_CmsUsers_TenantId_UserName", |
|||
table: "CmsUsers", |
|||
columns: new[] { "TenantId", "UserName" }); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "AbpBlobs"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsBlogFeatures"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsBlogPosts"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsBlogs"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsComments"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsEntityTags"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsMediaDescriptors"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsMenuItems"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsPages"); |
|||
migrationBuilder.DropTable( |
|||
name: "AbpBlobs"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsBlogFeatures"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsBlogPosts"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsBlogs"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsComments"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsEntityTags"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsMediaDescriptors"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsMenuItems"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsPages"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsRatings"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsTags"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsRatings"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsTags"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsUserReactions"); |
|||
migrationBuilder.DropTable( |
|||
name: "CmsUserReactions"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "AbpBlobContainers"); |
|||
migrationBuilder.DropTable( |
|||
name: "AbpBlobContainers"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsUsers"); |
|||
migrationBuilder.DropTable( |
|||
name: "CmsUsers"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "CmsMenus"); |
|||
} |
|||
migrationBuilder.DropTable( |
|||
name: "CmsMenus"); |
|||
} |
|||
} |
|||
|
|||
File diff suppressed because it is too large
@ -1,11 +1,10 @@ |
|||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|||
|
|||
namespace Volo.CmsKit.Pages |
|||
namespace Volo.CmsKit.Pages; |
|||
|
|||
public class IndexModel : AbpPageModel |
|||
{ |
|||
public class IndexModel : AbpPageModel |
|||
public void OnGet() |
|||
{ |
|||
public void OnGet() |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -1,11 +1,10 @@ |
|||
using Volo.Abp.Ui.Branding; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.CmsKit |
|||
namespace Volo.CmsKit; |
|||
|
|||
[Dependency(ReplaceServices = true)] |
|||
public class CmsKitBrandingProvider : DefaultBrandingProvider |
|||
{ |
|||
[Dependency(ReplaceServices = true)] |
|||
public class CmsKitBrandingProvider : DefaultBrandingProvider |
|||
{ |
|||
public override string AppName => "CmsKit"; |
|||
} |
|||
public override string AppName => "CmsKit"; |
|||
} |
|||
|
|||
@ -1,12 +1,11 @@ |
|||
using AutoMapper; |
|||
|
|||
namespace Volo.CmsKit |
|||
namespace Volo.CmsKit; |
|||
|
|||
public class CmsKitWebAutoMapperProfile : Profile |
|||
{ |
|||
public class CmsKitWebAutoMapperProfile : Profile |
|||
public CmsKitWebAutoMapperProfile() |
|||
{ |
|||
public CmsKitWebAutoMapperProfile() |
|||
{ |
|||
//Define your AutoMapper configuration here for the Web project.
|
|||
} |
|||
//Define your AutoMapper configuration here for the Web project.
|
|||
} |
|||
} |
|||
|
|||
@ -1,9 +1,8 @@ |
|||
using Volo.Abp.AspNetCore.Mvc.Authentication; |
|||
|
|||
namespace Volo.CmsKit.Controllers |
|||
namespace Volo.CmsKit.Controllers; |
|||
|
|||
public class AccountController : ChallengeAccountController |
|||
{ |
|||
public class AccountController : ChallengeAccountController |
|||
{ |
|||
|
|||
} |
|||
} |
|||
|
|||
@ -1,13 +1,12 @@ |
|||
using Volo.CmsKit.Localization; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|||
|
|||
namespace Volo.CmsKit.Pages |
|||
namespace Volo.CmsKit.Pages; |
|||
|
|||
public abstract class CmsKitPageModel : AbpPageModel |
|||
{ |
|||
public abstract class CmsKitPageModel : AbpPageModel |
|||
protected CmsKitPageModel() |
|||
{ |
|||
protected CmsKitPageModel() |
|||
{ |
|||
LocalizationResourceType = typeof(CmsKitResource); |
|||
} |
|||
LocalizationResourceType = typeof(CmsKitResource); |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -1,18 +1,17 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Authentication; |
|||
|
|||
namespace Volo.CmsKit.Pages |
|||
namespace Volo.CmsKit.Pages; |
|||
|
|||
public class IndexModel : CmsKitPageModel |
|||
{ |
|||
public class IndexModel : CmsKitPageModel |
|||
public void OnGet() |
|||
{ |
|||
public void OnGet() |
|||
{ |
|||
|
|||
} |
|||
|
|||
public async Task OnPostLoginAsync() |
|||
{ |
|||
await HttpContext.ChallengeAsync("oidc"); |
|||
} |
|||
} |
|||
} |
|||
|
|||
public async Task OnPostLoginAsync() |
|||
{ |
|||
await HttpContext.ChallengeAsync("oidc"); |
|||
} |
|||
} |
|||
|
|||
File diff suppressed because it is too large
@ -1,9 +1,8 @@ |
|||
using Microsoft.AspNetCore.Mvc.RazorPages; |
|||
|
|||
namespace Volo.CmsKit.Pages |
|||
namespace Volo.CmsKit.Pages; |
|||
|
|||
public class IndexModel : PageModel |
|||
{ |
|||
public class IndexModel : PageModel |
|||
{ |
|||
|
|||
} |
|||
} |
|||
|
|||
@ -1,14 +1,13 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Volo.CmsKit.Admin.Blogs |
|||
namespace Volo.CmsKit.Admin.Blogs; |
|||
|
|||
[Serializable] |
|||
public class BlogFeatureInputDto |
|||
{ |
|||
[Serializable] |
|||
public class BlogFeatureInputDto |
|||
{ |
|||
[Required] |
|||
public string FeatureName { get; set; } |
|||
|
|||
public bool IsEnabled { get; set; } |
|||
} |
|||
[Required] |
|||
public string FeatureName { get; set; } |
|||
|
|||
public bool IsEnabled { get; set; } |
|||
} |
|||
|
|||
@ -1,11 +1,10 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Volo.CmsKit.Admin.Blogs |
|||
namespace Volo.CmsKit.Admin.Blogs; |
|||
|
|||
[Serializable] |
|||
public class BlogGetListInput : PagedAndSortedResultRequestDto |
|||
{ |
|||
[Serializable] |
|||
public class BlogGetListInput : PagedAndSortedResultRequestDto |
|||
{ |
|||
public string Filter { get; set; } |
|||
} |
|||
public string Filter { get; set; } |
|||
} |
|||
|
|||
@ -1,12 +1,11 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Volo.CmsKit.Admin.Blogs |
|||
namespace Volo.CmsKit.Admin.Blogs; |
|||
|
|||
public class BlogPostGetListInput : PagedAndSortedResultRequestDto |
|||
{ |
|||
public class BlogPostGetListInput : PagedAndSortedResultRequestDto |
|||
{ |
|||
public string Filter { get; set; } |
|||
public string Filter { get; set; } |
|||
|
|||
public Guid? BlogId { get; set; } |
|||
} |
|||
} |
|||
public Guid? BlogId { get; set; } |
|||
} |
|||
|
|||
@ -1,9 +1,8 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Services; |
|||
|
|||
namespace Volo.CmsKit.Admin.Blogs |
|||
namespace Volo.CmsKit.Admin.Blogs; |
|||
|
|||
public interface IBlogAdminAppService : ICrudAppService<BlogDto, Guid, BlogGetListInput, CreateBlogDto, UpdateBlogDto> |
|||
{ |
|||
public interface IBlogAdminAppService : ICrudAppService<BlogDto, Guid, BlogGetListInput, CreateBlogDto, UpdateBlogDto> |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,16 +1,15 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Services; |
|||
|
|||
namespace Volo.CmsKit.Admin.Blogs |
|||
namespace Volo.CmsKit.Admin.Blogs; |
|||
|
|||
public interface IBlogPostAdminAppService |
|||
: ICrudAppService< |
|||
BlogPostDto, |
|||
BlogPostListDto, |
|||
Guid, |
|||
BlogPostGetListInput, |
|||
CreateBlogPostDto, |
|||
UpdateBlogPostDto> |
|||
{ |
|||
public interface IBlogPostAdminAppService |
|||
: ICrudAppService< |
|||
BlogPostDto, |
|||
BlogPostListDto, |
|||
Guid, |
|||
BlogPostGetListInput, |
|||
CreateBlogPostDto, |
|||
UpdateBlogPostDto> |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,12 +1,11 @@ |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.CmsKit.Admin |
|||
namespace Volo.CmsKit.Admin; |
|||
|
|||
[DependsOn( |
|||
typeof(CmsKitCommonApplicationContractsModule) |
|||
)] |
|||
public class CmsKitAdminApplicationContractsModule : AbpModule |
|||
{ |
|||
[DependsOn( |
|||
typeof(CmsKitCommonApplicationContractsModule) |
|||
)] |
|||
public class CmsKitAdminApplicationContractsModule : AbpModule |
|||
{ |
|||
|
|||
} |
|||
} |
|||
|
|||
@ -1,9 +1,8 @@ |
|||
namespace Volo.CmsKit.Admin |
|||
namespace Volo.CmsKit.Admin; |
|||
|
|||
public class CmsKitAdminRemoteServiceConsts |
|||
{ |
|||
public class CmsKitAdminRemoteServiceConsts |
|||
{ |
|||
public const string RemoteServiceName = "CmsKitAdmin"; |
|||
public const string RemoteServiceName = "CmsKitAdmin"; |
|||
|
|||
public const string ModuleName = "cms-kit-admin"; |
|||
} |
|||
public const string ModuleName = "cms-kit-admin"; |
|||
} |
|||
|
|||
@ -1,16 +1,15 @@ |
|||
using System; |
|||
|
|||
namespace Volo.CmsKit.Admin.Comments |
|||
namespace Volo.CmsKit.Admin.Comments; |
|||
|
|||
[Serializable] |
|||
public class CmsUserDto |
|||
{ |
|||
[Serializable] |
|||
public class CmsUserDto |
|||
{ |
|||
public Guid Id { get; set; } |
|||
public Guid Id { get; set; } |
|||
|
|||
public string UserName { get; set; } |
|||
public string UserName { get; set; } |
|||
|
|||
public string Name { get; set; } |
|||
public string Name { get; set; } |
|||
|
|||
public string Surname { get; set; } |
|||
} |
|||
} |
|||
public string Surname { get; set; } |
|||
} |
|||
|
|||
@ -1,22 +1,21 @@ |
|||
using System; |
|||
|
|||
namespace Volo.CmsKit.Admin.Comments |
|||
namespace Volo.CmsKit.Admin.Comments; |
|||
|
|||
[Serializable] |
|||
public class CommentDto |
|||
{ |
|||
[Serializable] |
|||
public class CommentDto |
|||
{ |
|||
public Guid Id { get; set; } |
|||
public Guid Id { get; set; } |
|||
|
|||
public string EntityType { get; set; } |
|||
public string EntityType { get; set; } |
|||
|
|||
public string EntityId { get; set; } |
|||
public string EntityId { get; set; } |
|||
|
|||
public string Text { get; set; } |
|||
public string Text { get; set; } |
|||
|
|||
public Guid? RepliedCommentId { get; set; } |
|||
public Guid? RepliedCommentId { get; set; } |
|||
|
|||
public Guid CreatorId { get; set; } |
|||
public Guid CreatorId { get; set; } |
|||
|
|||
public DateTime CreationTime { get; set; } |
|||
} |
|||
} |
|||
public DateTime CreationTime { get; set; } |
|||
} |
|||
|
|||
@ -1,21 +1,20 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Volo.CmsKit.Admin.Comments |
|||
namespace Volo.CmsKit.Admin.Comments; |
|||
|
|||
[Serializable] |
|||
public class CommentGetListInput : PagedAndSortedResultRequestDto |
|||
{ |
|||
[Serializable] |
|||
public class CommentGetListInput : PagedAndSortedResultRequestDto |
|||
{ |
|||
public string EntityType { get; set; } |
|||
public string EntityType { get; set; } |
|||
|
|||
public string Text { get; set; } |
|||
|
|||
public string Text { get; set; } |
|||
public Guid? RepliedCommentId { get; set; } |
|||
|
|||
public Guid? RepliedCommentId { get; set; } |
|||
public string Author { get; set; } |
|||
|
|||
public string Author { get; set; } |
|||
public DateTime? CreationStartDate { get; set; } |
|||
|
|||
public DateTime? CreationStartDate { get; set; } |
|||
|
|||
public DateTime? CreationEndDate { get; set; } |
|||
} |
|||
} |
|||
public DateTime? CreationEndDate { get; set; } |
|||
} |
|||
|
|||
@ -1,15 +1,14 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Volo.CmsKit.Admin.MediaDescriptors |
|||
namespace Volo.CmsKit.Admin.MediaDescriptors; |
|||
|
|||
[Serializable] |
|||
public class MediaDescriptorDto : EntityDto<Guid> |
|||
{ |
|||
[Serializable] |
|||
public class MediaDescriptorDto : EntityDto<Guid> |
|||
{ |
|||
public string Name { get; set; } |
|||
|
|||
public string MimeType { get; set; } |
|||
|
|||
public int Size { get; set; } |
|||
} |
|||
} |
|||
public string Name { get; set; } |
|||
|
|||
public string MimeType { get; set; } |
|||
|
|||
public int Size { get; set; } |
|||
} |
|||
|
|||
@ -1,30 +1,29 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Volo.CmsKit.Admin.Menus |
|||
namespace Volo.CmsKit.Admin.Menus; |
|||
|
|||
[Serializable] |
|||
public class MenuItemCreateInput |
|||
{ |
|||
[Serializable] |
|||
public class MenuItemCreateInput |
|||
{ |
|||
public Guid? ParentId { get; set; } |
|||
public Guid? ParentId { get; set; } |
|||
|
|||
[Required] |
|||
public string DisplayName { get; set; } |
|||
[Required] |
|||
public string DisplayName { get; set; } |
|||
|
|||
public bool IsActive { get; set; } |
|||
public bool IsActive { get; set; } |
|||
|
|||
public string Url { get; set; } |
|||
public string Url { get; set; } |
|||
|
|||
public string Icon { get; set; } |
|||
public string Icon { get; set; } |
|||
|
|||
public int Order { get; set; } |
|||
public int Order { get; set; } |
|||
|
|||
public string Target { get; set; } |
|||
public string Target { get; set; } |
|||
|
|||
public string ElementId { get; set; } |
|||
public string ElementId { get; set; } |
|||
|
|||
public string CssClass { get; set; } |
|||
public string CssClass { get; set; } |
|||
|
|||
public Guid? PageId { get; set; } |
|||
} |
|||
public Guid? PageId { get; set; } |
|||
} |
|||
|
|||
@ -1,12 +1,11 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Volo.CmsKit.Admin.Menus |
|||
namespace Volo.CmsKit.Admin.Menus; |
|||
|
|||
public class PageLookupDto : EntityDto<Guid> |
|||
{ |
|||
public class PageLookupDto : EntityDto<Guid> |
|||
{ |
|||
public string Title { get; set; } |
|||
public string Title { get; set; } |
|||
|
|||
public string Slug { get; set; } |
|||
} |
|||
} |
|||
public string Slug { get; set; } |
|||
} |
|||
|
|||
@ -1,11 +1,10 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Volo.CmsKit.Admin.Menus |
|||
namespace Volo.CmsKit.Admin.Menus; |
|||
|
|||
[Serializable] |
|||
public class PageLookupInputDto : PagedAndSortedResultRequestDto |
|||
{ |
|||
[Serializable] |
|||
public class PageLookupInputDto: PagedAndSortedResultRequestDto |
|||
{ |
|||
public string Filter { get; set; } |
|||
} |
|||
} |
|||
public string Filter { get; set; } |
|||
} |
|||
|
|||
@ -1,10 +1,9 @@ |
|||
using System; |
|||
|
|||
namespace Volo.CmsKit.Admin.Menus |
|||
namespace Volo.CmsKit.Admin.Menus; |
|||
|
|||
[Serializable] |
|||
public class UpdateMainMenuInput |
|||
{ |
|||
[Serializable] |
|||
public class UpdateMainMenuInput |
|||
{ |
|||
public bool IsMainMenu { get; set; } |
|||
} |
|||
} |
|||
public bool IsMainMenu { get; set; } |
|||
} |
|||
|
|||
@ -1,11 +1,10 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Volo.CmsKit.Admin.Pages |
|||
namespace Volo.CmsKit.Admin.Pages; |
|||
|
|||
[Serializable] |
|||
public class GetPagesInputDto : PagedAndSortedResultRequestDto |
|||
{ |
|||
[Serializable] |
|||
public class GetPagesInputDto : PagedAndSortedResultRequestDto |
|||
{ |
|||
public string Filter { get; set; } |
|||
} |
|||
} |
|||
public string Filter { get; set; } |
|||
} |
|||
|
|||
@ -1,18 +1,17 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Volo.CmsKit.Admin.Tags |
|||
namespace Volo.CmsKit.Admin.Tags; |
|||
|
|||
[Serializable] |
|||
public class EntityTagCreateDto |
|||
{ |
|||
[Serializable] |
|||
public class EntityTagCreateDto |
|||
{ |
|||
[Required] |
|||
public string TagName { get; set; } |
|||
[Required] |
|||
public string TagName { get; set; } |
|||
|
|||
[Required] |
|||
public string EntityType { get; set; } |
|||
[Required] |
|||
public string EntityType { get; set; } |
|||
|
|||
[Required] |
|||
public string EntityId { get; set; } |
|||
} |
|||
[Required] |
|||
public string EntityId { get; set; } |
|||
} |
|||
|
|||
@ -1,18 +1,17 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Volo.CmsKit.Admin.Tags |
|||
namespace Volo.CmsKit.Admin.Tags; |
|||
|
|||
[Serializable] |
|||
public class EntityTagRemoveDto |
|||
{ |
|||
[Serializable] |
|||
public class EntityTagRemoveDto |
|||
{ |
|||
[Required] |
|||
public Guid TagId { get; set; } |
|||
[Required] |
|||
public Guid TagId { get; set; } |
|||
|
|||
[Required] |
|||
public string EntityType { get; set; } |
|||
[Required] |
|||
public string EntityType { get; set; } |
|||
|
|||
[Required] |
|||
public string EntityId { get; set; } |
|||
} |
|||
[Required] |
|||
public string EntityId { get; set; } |
|||
} |
|||
|
|||
@ -1,14 +1,13 @@ |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Services; |
|||
|
|||
namespace Volo.CmsKit.Admin.Tags |
|||
namespace Volo.CmsKit.Admin.Tags; |
|||
|
|||
public interface IEntityTagAdminAppService : IApplicationService |
|||
{ |
|||
public interface IEntityTagAdminAppService : IApplicationService |
|||
{ |
|||
Task AddTagToEntityAsync(EntityTagCreateDto input); |
|||
Task AddTagToEntityAsync(EntityTagCreateDto input); |
|||
|
|||
Task RemoveTagFromEntityAsync(EntityTagRemoveDto input); |
|||
Task RemoveTagFromEntityAsync(EntityTagRemoveDto input); |
|||
|
|||
Task SetEntityTagsAsync(EntityTagSetDto input); |
|||
} |
|||
Task SetEntityTagsAsync(EntityTagSetDto input); |
|||
} |
|||
|
|||
@ -1,12 +1,11 @@ |
|||
using System; |
|||
|
|||
namespace Volo.CmsKit.Admin.Tags |
|||
namespace Volo.CmsKit.Admin.Tags; |
|||
|
|||
[Serializable] |
|||
public class TagDefinitionDto |
|||
{ |
|||
[Serializable] |
|||
public class TagDefinitionDto |
|||
{ |
|||
public string EntityType { get; set; } |
|||
public string EntityType { get; set; } |
|||
|
|||
public string DisplayName { get; set; } |
|||
} |
|||
public string DisplayName { get; set; } |
|||
} |
|||
|
|||
@ -1,11 +1,10 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Volo.CmsKit.Admin.Tags |
|||
namespace Volo.CmsKit.Admin.Tags; |
|||
|
|||
[Serializable] |
|||
public class TagGetListInput : PagedAndSortedResultRequestDto |
|||
{ |
|||
[Serializable] |
|||
public class TagGetListInput : PagedAndSortedResultRequestDto |
|||
{ |
|||
public string Filter { get; set; } |
|||
} |
|||
public string Filter { get; set; } |
|||
} |
|||
|
|||
@ -1,64 +1,63 @@ |
|||
using Volo.Abp.Reflection; |
|||
|
|||
namespace Volo.CmsKit.Permissions |
|||
namespace Volo.CmsKit.Permissions; |
|||
|
|||
public class CmsKitAdminPermissions |
|||
{ |
|||
public class CmsKitAdminPermissions |
|||
{ |
|||
public const string GroupName = "CmsKit"; |
|||
public const string GroupName = "CmsKit"; |
|||
|
|||
public static class Comments |
|||
{ |
|||
public const string Default = GroupName + ".Comments"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
public static class Comments |
|||
{ |
|||
public const string Default = GroupName + ".Comments"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
|
|||
public static class Tags |
|||
{ |
|||
public const string Default = GroupName + ".Tags"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
public static class Tags |
|||
{ |
|||
public const string Default = GroupName + ".Tags"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
|
|||
public static class Contents |
|||
{ |
|||
public const string Default = GroupName + ".Contents"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
public static class Contents |
|||
{ |
|||
public const string Default = GroupName + ".Contents"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
|
|||
public static class Pages |
|||
{ |
|||
public const string Default = GroupName + ".Pages"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
public static class Pages |
|||
{ |
|||
public const string Default = GroupName + ".Pages"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
|
|||
public static class Blogs |
|||
{ |
|||
public const string Default = GroupName + ".Blogs"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
public const string Features = Default + ".Features"; |
|||
} |
|||
public static class Blogs |
|||
{ |
|||
public const string Default = GroupName + ".Blogs"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
public const string Features = Default + ".Features"; |
|||
} |
|||
|
|||
public static class BlogPosts |
|||
{ |
|||
public const string Default = GroupName + ".BlogPosts"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
public static class BlogPosts |
|||
{ |
|||
public const string Default = GroupName + ".BlogPosts"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
|
|||
public static class Menus |
|||
{ |
|||
public const string Default = GroupName + ".Menus"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
public static class Menus |
|||
{ |
|||
public const string Default = GroupName + ".Menus"; |
|||
public const string Create = Default + ".Create"; |
|||
public const string Update = Default + ".Update"; |
|||
public const string Delete = Default + ".Delete"; |
|||
} |
|||
} |
|||
|
|||
@ -1,8 +1,7 @@ |
|||
// This file is part of BlogAdminClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies |
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies; |
|||
|
|||
public partial class BlogAdminClientProxy |
|||
{ |
|||
public partial class BlogAdminClientProxy |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,8 +1,7 @@ |
|||
// This file is part of BlogFeatureAdminClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies |
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies; |
|||
|
|||
public partial class BlogFeatureAdminClientProxy |
|||
{ |
|||
public partial class BlogFeatureAdminClientProxy |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,8 +1,7 @@ |
|||
// This file is part of BlogPostAdminClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies |
|||
namespace Volo.CmsKit.Admin.Blogs.ClientProxies; |
|||
|
|||
public partial class BlogPostAdminClientProxy |
|||
{ |
|||
public partial class BlogPostAdminClientProxy |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,8 +1,7 @@ |
|||
// This file is part of CommentAdminClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Comments.ClientProxies |
|||
namespace Volo.CmsKit.Admin.Comments.ClientProxies; |
|||
|
|||
public partial class CommentAdminClientProxy |
|||
{ |
|||
public partial class CommentAdminClientProxy |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,8 +1,7 @@ |
|||
// This file is part of EntityTagAdminClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Tags.ClientProxies |
|||
namespace Volo.CmsKit.Admin.Tags.ClientProxies; |
|||
|
|||
public partial class EntityTagAdminClientProxy |
|||
{ |
|||
public partial class EntityTagAdminClientProxy |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,8 +1,7 @@ |
|||
// This file is part of MediaDescriptorAdminClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.MediaDescriptors.ClientProxies |
|||
namespace Volo.CmsKit.Admin.MediaDescriptors.ClientProxies; |
|||
|
|||
public partial class MediaDescriptorAdminClientProxy |
|||
{ |
|||
public partial class MediaDescriptorAdminClientProxy |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,8 +1,7 @@ |
|||
// This file is part of MenuItemAdminClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Menus.ClientProxies |
|||
namespace Volo.CmsKit.Admin.Menus.ClientProxies; |
|||
|
|||
public partial class MenuItemAdminClientProxy |
|||
{ |
|||
public partial class MenuItemAdminClientProxy |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,8 +1,7 @@ |
|||
// This file is part of PageAdminClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Pages.ClientProxies |
|||
namespace Volo.CmsKit.Admin.Pages.ClientProxies; |
|||
|
|||
public partial class PageAdminClientProxy |
|||
{ |
|||
public partial class PageAdminClientProxy |
|||
{ |
|||
} |
|||
} |
|||
|
|||
@ -1,8 +1,7 @@ |
|||
// This file is part of TagAdminClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Admin.Tags.ClientProxies |
|||
namespace Volo.CmsKit.Admin.Tags.ClientProxies; |
|||
|
|||
public partial class TagAdminClientProxy |
|||
{ |
|||
public partial class TagAdminClientProxy |
|||
{ |
|||
} |
|||
} |
|||
|
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue