Files
TakeoutSaaS.AdminApi/src/Application/TakeoutSaaS.Application/App/Stores/Dto/StoreFeeCalculationItemDto.cs

27 lines
606 B
C#

using System.Text.Json.Serialization;
using TakeoutSaaS.Shared.Abstractions.Serialization;
namespace TakeoutSaaS.Application.App.Stores.Dto;
/// <summary>
/// 费用计算商品项。
/// </summary>
public sealed record StoreFeeCalculationItemDto
{
/// <summary>
/// SKU ID。
/// </summary>
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
public long SkuId { get; init; }
/// <summary>
/// 数量。
/// </summary>
public int Quantity { get; init; }
/// <summary>
/// 单件打包费。
/// </summary>
public decimal PackagingFee { get; init; }
}