山东雷驰
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
736 B

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