using Hotline.Share.Enums.Snapshot;
using Hotline.Share.Requests;
using Hotline.Share.Tools;
using System.ComponentModel.DataAnnotations;
namespace Hotline.Share.Dtos.Snapshot;
public class RedPackOutDto
{
public string Title { get; set; }
public DateTime CreationTime { get; set; }
public string CreationTimeText => CreationTime.ToString("yyyy-MM-dd HH:mm:ss");
///
/// 金额(单位:元)
///
public string AmountTxt => Amount.ToYuanFinance();
///
/// 金额(单位:元)
///
public double Amount { get; set; }
}
public class RedPacksInDto : QueryFixedDto
{
///
/// 时间; 格式:yyyy-MM
///
[Required]
public string Time { get; set; } = DateTime.Now.ToString("yyyy-MM");
///
/// 红包状态
///
public ERedPackPickupStatus Status { get; set; }
}
public class RedPackDateInDto : QueryFixedDto
{
///
/// 红包状态
///
public ERedPackPickupStatus Status { get; set; }
}
public class RedPackDateOutDto
{
///
/// 时间
///
public DateTime CreationTime { get; set; }
public string CreationTimeText => CreationTime.ToString("yyyy-MM");
///
/// 金额(单位:元)
///
public double Amount { get; set; }
///
/// 金额(单位:元)
///
public string AmountTxt => Amount.ToYuanFinance();
}