feat: 添加abp的后台管理

This commit is contained in:
橙子
2023-12-11 22:14:13 +08:00
parent 27a2849619
commit aa49398c29
20 changed files with 433 additions and 23 deletions

View File

@@ -1,11 +1,12 @@
using SqlSugar;
using Volo.Abp;
using Volo.Abp.Auditing;
using Volo.Abp.Domain.Entities;
namespace Yi.Framework.Bbs.Domain.Entities
{
[SugarTable("Article")]
public class ArticleEntity : Entity<Guid>, ISoftDelete
public class ArticleEntity : Entity<Guid>, ISoftDelete,IAuditedObject
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
public override Guid Id { get; protected set; }
@@ -23,6 +24,15 @@ namespace Yi.Framework.Bbs.Domain.Entities
[SugarColumn(IsIgnore = true)]
public List<ArticleEntity>? Children { get; set; }
public DateTime CreationTime { get; set; }
public Guid? CreatorId { get; set; }
public Guid? LastModifierId { get; set; }
public DateTime? LastModificationTime { get; set; }
}
public static class ArticleEntityExtensions

View File

@@ -1,18 +1,31 @@
using SqlSugar;
using Volo.Abp.Domain.Entities;
using Volo.Abp;
using Volo.Abp.Auditing;
namespace Yi.Framework.Bbs.Domain.Entities
{
[SugarTable("Plate")]
public class PlateEntity : Entity<Guid>, ISoftDelete
public class PlateEntity : Entity<Guid>, ISoftDelete,IAuditedObject
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
public override Guid Id { get; protected set; }
public string Code { get; set; }
public string Name { get; set; }
public string? Logo { get; set; }
public string? Introduction { get; set; }
public bool IsDeleted { get; set; }
public DateTime CreationTime { get; set; }
public Guid? CreatorId { get; set; }
public Guid? LastModifierId { get; set; }
public DateTime? LastModificationTime { get; set; }
}
}