style: 修改聚合跟类命名
This commit is contained in:
@@ -7,11 +7,11 @@ namespace Yi.Framework.Bbs.Domain.Entities.Integral
|
||||
/// 等级表
|
||||
/// </summary>
|
||||
[SugarTable("Level")]
|
||||
public class LevelEntity : Entity<Guid>
|
||||
public class LevelAggregateRoot : AggregateRoot<Guid>
|
||||
{
|
||||
public LevelEntity() { }
|
||||
public LevelAggregateRoot() { }
|
||||
|
||||
public LevelEntity(int currentLevel, string name, decimal minExperience)
|
||||
public LevelAggregateRoot(int currentLevel, string name, decimal minExperience)
|
||||
{
|
||||
this.CurrentLevel = currentLevel;
|
||||
this.Name = name;
|
||||
@@ -15,7 +15,7 @@ namespace Yi.Framework.Bbs.Domain.Entities.Integral
|
||||
[SugarTable("SignIn")]
|
||||
|
||||
[SugarIndex($"index_{nameof(CreatorId)}", nameof(CreatorId), OrderByType.Asc)]
|
||||
public class SignInEntity : Entity<Guid>, ICreationAuditedObject
|
||||
public class SignInAggregateRoot : AggregateRoot<Guid>, ICreationAuditedObject
|
||||
{
|
||||
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
Reference in New Issue
Block a user