using Kean.Domain.Stock.Repositories;
using System.Threading.Tasks;
namespace Kean.Domain.Stock.SharedServices
{
///
/// 获取托盘条码
///
public sealed class GetBarcode
{
private readonly IStockRepository _stockRepository;
///
/// 依赖注入
///
public GetBarcode(IStockRepository stockRepository) =>
_stockRepository = stockRepository;
///
/// 处理程序
///
/// 库存位置
/// 托盘条码
public Task Handler(int cell) =>
_stockRepository.GetBarcode(cell);
}
}