Files
TakeoutSaaS.TenantApi/src/Domain/TakeoutSaaS.Domain/Stores/Entities/StoreFee.cs
MSuMshk 1b185af718
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 46s
feat: 完成门店管理剩余接口并补齐文档注释
2026-02-17 14:54:35 +08:00

71 lines
1.8 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 TakeoutSaaS.Domain.Stores.Enums;
using TakeoutSaaS.Shared.Abstractions.Entities;
namespace TakeoutSaaS.Domain.Stores.Entities;
/// <summary>
/// 门店费用配置。
/// </summary>
public sealed class StoreFee : MultiTenantEntityBase
{
/// <summary>
/// 门店标识。
/// </summary>
public long StoreId { get; set; }
/// <summary>
/// 起送费(元)。
/// </summary>
public decimal MinimumOrderAmount { get; set; } = 0m;
/// <summary>
/// 基础配送费(元)。
/// </summary>
public decimal BaseDeliveryFee { get; set; } = 0m;
/// <summary>
/// 打包费模式。
/// </summary>
public PackagingFeeMode PackagingFeeMode { get; set; } = PackagingFeeMode.Fixed;
/// <summary>
/// 订单打包费规则(按订单收费时生效)。
/// </summary>
public OrderPackagingFeeMode OrderPackagingFeeMode { get; set; } = OrderPackagingFeeMode.Fixed;
/// <summary>
/// 固定打包费(总计模式有效)。
/// </summary>
public decimal FixedPackagingFee { get; set; } = 0m;
/// <summary>
/// 阶梯打包费配置JSON
/// </summary>
public string? PackagingFeeTiersJson { get; set; }
/// <summary>
/// 免配送费门槛。
/// </summary>
public decimal? FreeDeliveryThreshold { get; set; }
/// <summary>
/// 是否启用餐具费。
/// </summary>
public bool CutleryFeeEnabled { get; set; }
/// <summary>
/// 餐具费金额。
/// </summary>
public decimal CutleryFeeAmount { get; set; }
/// <summary>
/// 是否启用加急费。
/// </summary>
public bool RushFeeEnabled { get; set; }
/// <summary>
/// 加急费金额。
/// </summary>
public decimal RushFeeAmount { get; set; }
}