using System.ComponentModel.DataAnnotations;
using YD_Event.Core.Enum;
namespace YD_Event.Application.Points.Dtos;
///
/// 用户积分查询输入
///
public class UserPointsQueryInput : Pagination
{
///
/// 积分类型(1-获取 2-消耗,不传为全部)
///
public PointsOperationType? Type { get; set; }
///
/// 动作关键字(赛事名称/商品名称)
///
public string? ActionKeyword { get; set; }
///
/// 开始时间
///
public DateTime? StartTime { get; set; }
///
/// 结束时间
///
public DateTime? EndTime { get; set; }
}
///
/// 积分明细列表项
///
public class UserPointsLogDto
{
///
/// 记录ID
///
public long Id { get; set; }
///
/// 积分类型(1-获取 2-消耗)
///
public PointsOperationType Type { get; set; }
///
/// 动作(赛事名称/消费内容)
///
public string Action { get; set; }
///
/// 项目名称
///
public string? ProjectName { get; set; }
///
/// 组别名称
///
public string? GroupName { get; set; }
///
/// 参赛人(仅单位账号有效)
///
public string? ParticipantName { get; set; }
///
/// 名次
///
public int? Rank { get; set; }
///
/// 积分变动
///
public decimal Points { get; set; }
///
/// 生成时间
///
public DateTime CreatedTime { get; set; }
}
///
/// 用户积分概览
///
public class UserPointsOverviewDto
{
///
/// 当前总积分
///
public decimal CurrentBalance { get; set; }
}