54 lines
1.2 KiB
C#
54 lines
1.2 KiB
C#
using System.Text.Json.Serialization;
|
|
using TakeoutSaaS.Shared.Abstractions.Serialization;
|
|
|
|
namespace TakeoutSaaS.Application.App.Inventory.Dto;
|
|
|
|
/// <summary>
|
|
/// 库存批次 DTO。
|
|
/// </summary>
|
|
public sealed record InventoryBatchDto
|
|
{
|
|
/// <summary>
|
|
/// 批次 ID。
|
|
/// </summary>
|
|
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
|
public long Id { get; init; }
|
|
|
|
/// <summary>
|
|
/// 门店 ID。
|
|
/// </summary>
|
|
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
|
public long StoreId { get; init; }
|
|
|
|
/// <summary>
|
|
/// SKU ID。
|
|
/// </summary>
|
|
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
|
public long ProductSkuId { get; init; }
|
|
|
|
/// <summary>
|
|
/// 批次号。
|
|
/// </summary>
|
|
public string BatchNumber { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 生产日期。
|
|
/// </summary>
|
|
public DateTime? ProductionDate { get; init; }
|
|
|
|
/// <summary>
|
|
/// 过期日期。
|
|
/// </summary>
|
|
public DateTime? ExpireDate { get; init; }
|
|
|
|
/// <summary>
|
|
/// 入库数量。
|
|
/// </summary>
|
|
public int Quantity { get; init; }
|
|
|
|
/// <summary>
|
|
/// 剩余数量。
|
|
/// </summary>
|
|
public int RemainingQuantity { get; init; }
|
|
}
|