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.
27 lines
759 B
27 lines
759 B
3 months ago
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Kean.Domain.Task.SharedServices.Proxies
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 任务域代理
|
||
|
/// </summary>
|
||
|
public sealed class MaterialProxy
|
||
|
{
|
||
|
private readonly IDomain _domain; // 域
|
||
|
|
||
|
/// <summary>
|
||
|
/// 依赖注入
|
||
|
/// </summary>
|
||
|
public MaterialProxy(IDomain domain) =>
|
||
|
_domain = domain;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取物料ID
|
||
|
/// </summary>
|
||
|
/// <param name="likecode">部分码值</param>
|
||
|
/// <returns>库存位置</returns>
|
||
|
public Task<string> GetMaterial(int? goodsid, string likecode, bool bLike) =>
|
||
|
_domain["Material"].SharedService["GetMaterial"].Invoke<string>(goodsid, likecode, bLike);
|
||
|
}
|
||
|
}
|