using Kean.Domain.Material.Repositories; using System.Threading.Tasks; namespace Kean.Domain.Material.SharedServices { /// /// 获取库存位置 /// public sealed class IsPallet { private readonly IMaterialRepository _materialRepository; /// /// 依赖注入 /// public IsPallet(IMaterialRepository materialRepository) => _materialRepository = materialRepository; /// /// 处理程序 /// /// 物料ID /// 库存位置 public Task Handler(int id) => _materialRepository.IsPallet(id); } }