campus-errand/server/Models/CommissionRule.cs
2026-03-01 05:01:47 +08:00

29 lines
792 B
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;
using System.ComponentModel.DataAnnotations.Schema;
namespace CampusErrand.Models;
/// <summary>
/// 佣金规则表
/// </summary>
public class CommissionRule
{
[Key]
public int Id { get; set; }
/// <summary>区间最低金额</summary>
[Column(TypeName = "decimal(10,2)")]
public decimal MinAmount { get; set; }
/// <summary>区间最高金额null 表示无上限)</summary>
[Column(TypeName = "decimal(10,2)")]
public decimal? MaxAmount { get; set; }
/// <summary>类型:百分比或固定金额</summary>
public CommissionRateType RateType { get; set; }
/// <summary>抽成比例或固定金额</summary>
[Column(TypeName = "decimal(10,4)")]
public decimal Rate { get; set; }
}