using System.ComponentModel.DataAnnotations; using YD_Event.Core.Enum; namespace YD_Event.Application.Refund.Dtos; /// /// 退款配置DTO /// public class RefundConfigDto { /// /// ID /// public long Id { get; set; } /// /// 距离比赛开始天数(起) /// public int DayStart { get; set; } /// /// 距离比赛开始天数(止) /// public int DayEnd { get; set; } /// /// 扣除比例 (0-1) /// public decimal DeductPercentage { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 状态 /// public AvailabilityStatus Status { get; set; } } /// /// 退款配置输入 /// public class RefundConfigInput { /// /// ID (更新时必填) /// public long? Id { get; set; } /// /// 距离比赛开始天数(起) /// [Required] public int DayStart { get; set; } /// /// 距离比赛开始天数(止) /// [Required] public int DayEnd { get; set; } /// /// 扣除比例 (0-1) /// [Required] public decimal DeductPercentage { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 状态 /// public AvailabilityStatus Status { get; set; } } /// /// 退款配置查询输入 /// public class RefundConfigQueryInput : Pagination { /// /// 状态 /// public AvailabilityStatus? Status { get; set; } }