2026-01-17 12:52:58 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
using YD_Event.Core.Enum;
|
|
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Core.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 积分记录表
|
|
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public class PointsRecord : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
|
2026-01-17 12:52:58 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用户ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 积分变动类型:1-获取,2-消耗
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public PointsOperationType Type { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 动作/来源描述
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 256)]
|
|
|
|
|
|
public string Action { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 项目名称(可选)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 128, IsNullable = true)]
|
|
|
|
|
|
public string? Item { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 组别(可选)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 64, IsNullable = true)]
|
|
|
|
|
|
public string? Group { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 变动积分
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Points { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 备注
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 512, IsNullable = true)]
|
|
|
|
|
|
public string? Remark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 可用状态
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public AvailabilityStatus Status { get; set; }
|
|
|
|
|
|
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 标记删除
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool DeleteMark { get; set; }
|
|
|
|
|
|
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建人
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long CreatedUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// 创建时间
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public DateTime CreatedTime { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// 更新人
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public long? UpdatedUserId { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// 更新时间
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
}
|