39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
|
|
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; }
|
|||
|
|
}
|