山东雷驰
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
816 B

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