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