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