2026-02-07 17:28:46 +08:00

39 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.ComponentModel.DataAnnotations;
namespace YD_Event.Application.Setting.Dtos;
/// <summary>
/// 退款配置输入参数
/// </summary>
public class RefundConfigInput
{
/// <summary>
/// 开赛前7天扣除比例(%)
/// </summary>
[Required(ErrorMessage = "请输入开赛前7天扣除比例")]
[Range(0, 100, ErrorMessage = "比例必须在0-100之间")]
public decimal DeductPercentageBefore7Days { get; set; }
/// <summary>
/// 3-7天扣除比例(%)
/// </summary>
[Required(ErrorMessage = "请输入3-7天扣除比例")]
[Range(0, 100, ErrorMessage = "比例必须在0-100之间")]
public decimal DeductPercentage3To7Days { get; set; }
/// <summary>
/// 3天内扣除比例(%)
/// </summary>
[Required(ErrorMessage = "请输入3天内扣除比例")]
[Range(0, 100, ErrorMessage = "比例必须在0-100之间")]
public decimal DeductPercentageWithin3Days { get; set; }
}
/// <summary>
/// 退款配置输出参数
/// </summary>
public class RefundConfigOutput : RefundConfigInput
{
public DateTime? UpdatedTime { get; set; }
}