67 lines
1.6 KiB
C#
Raw Normal View History

2026-02-07 17:28:46 +08:00
using SqlSugar;
using System.ComponentModel.DataAnnotations;
2026-03-02 09:54:52 +08:00
using YD_Event.Core.Enum;
2026-02-07 17:28:46 +08:00
namespace YD_Event.Core.Entities;
/// <summary>
/// 退款配置
/// </summary>
[SugarTable("RefundConfig")]
2026-03-02 09:54:52 +08:00
public class RefundConfig : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
2026-02-07 17:28:46 +08:00
{
/// <summary>
2026-03-02 09:54:52 +08:00
/// 天数起始值
2026-02-07 17:28:46 +08:00
/// </summary>
2026-03-02 09:54:52 +08:00
[SugarColumn(ColumnDescription = "天数起始值")]
public int DayStart { get; set; }
2026-02-07 17:28:46 +08:00
/// <summary>
2026-03-02 09:54:52 +08:00
/// 天数结束值
2026-02-07 17:28:46 +08:00
/// </summary>
2026-03-02 09:54:52 +08:00
[SugarColumn(ColumnDescription = "天数结束值")]
public int DayEnd { get; set; }
2026-02-07 17:28:46 +08:00
/// <summary>
2026-03-02 09:54:52 +08:00
/// 扣除比例(%)
2026-02-07 17:28:46 +08:00
/// </summary>
2026-03-02 09:54:52 +08:00
[SugarColumn(ColumnDescription = "扣除比例", DecimalDigits = 2)]
public decimal DeductPercentage { get; set; }
2026-02-07 17:28:46 +08:00
/// <summary>
2026-03-02 09:54:52 +08:00
/// 退款备注
2026-02-07 17:28:46 +08:00
/// </summary>
2026-03-02 09:54:52 +08:00
[SugarColumn(ColumnDescription = "退款备注", Length = 256, IsNullable = true)]
2026-02-07 17:28:46 +08:00
public string Remark { get; set; }
2026-03-02 09:54:52 +08:00
/// <summary>
/// 可用状态
/// </summary>
public AvailabilityStatus Status { get; set; }
2026-02-26 18:29:08 +08:00
/// <summary>
/// 标记删除
/// </summary>
public bool DeleteMark { get; set; }
/// <summary>
/// 创建人
/// </summary>
public long CreatedUserId { get; set; }
2026-03-02 09:54:52 +08:00
/// <summary>
/// 创建时间
/// </summary>
2026-02-07 17:28:46 +08:00
public DateTime CreatedTime { get; set; }
2026-02-26 18:29:08 +08:00
/// <summary>
/// 更新人
/// </summary>
public long? UpdatedUserId { get; set; }
2026-03-02 09:54:52 +08:00
/// <summary>
/// 更新时间
/// </summary>
2026-02-07 17:28:46 +08:00
public DateTime? UpdatedTime { get; set; }
}