Files
Yi.Admin/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Domain/Entities/Integral/LevelAggregateRoot.cs

53 lines
1.2 KiB
C#
Raw Normal View History

2024-01-11 18:51:53 +08:00
using SqlSugar;
using Volo.Abp.Domain.Entities;
namespace Yi.Framework.Bbs.Domain.Entities.Integral
{
/// <summary>
/// 等级表
/// </summary>
[SugarTable("Level")]
2024-05-22 14:35:08 +08:00
public class LevelAggregateRoot : AggregateRoot<Guid>
2024-01-11 18:51:53 +08:00
{
2024-05-22 14:35:08 +08:00
public LevelAggregateRoot() { }
2024-01-11 18:51:53 +08:00
2024-05-22 14:35:08 +08:00
public LevelAggregateRoot(int currentLevel, string name, decimal minExperience)
2024-01-11 18:51:53 +08:00
{
this.CurrentLevel = currentLevel;
this.Name = name;
this.MinExperience = minExperience;
}
[SugarColumn(IsPrimaryKey = true)]
public override Guid Id { get; protected set; }
/// <summary>
/// 当前等级
/// </summary>
public int CurrentLevel { get; set; }
/// <summary>
/// 最小所需经验值
/// </summary>
public decimal MinExperience { get; set; }
/// <summary>
/// 等级名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 等级称号
/// </summary>
public string? Nick { get; set; }
/// <summary>
/// 等候logo
/// </summary>
public string? Logo { get; set; }
}
2024-01-29 11:20:40 +08:00
2024-01-11 18:51:53 +08:00
}