using MediatR;
using TakeoutSaaS.Application.App.Inventory.Dto;
namespace TakeoutSaaS.Application.App.Inventory.Commands;
///
/// 新增或更新库存批次命令。
///
public sealed record UpsertInventoryBatchCommand : IRequest
{
///
/// 门店 ID。
///
public long StoreId { get; init; }
///
/// SKU ID。
///
public long ProductSkuId { get; init; }
///
/// 批次号。
///
public string BatchNumber { get; init; } = string.Empty;
///
/// 生产日期。
///
public DateTime? ProductionDate { get; init; }
///
/// 过期日期。
///
public DateTime? ExpireDate { get; init; }
///
/// 入库数量。
///
public int Quantity { get; init; }
///
/// 剩余数量。
///
public int RemainingQuantity { get; init; }
}