using Kean.Domain.Material.Commands; namespace Kean.Domain.Material.SharedServices { /// /// 上架 /// public sealed class CreateGoods { private readonly ICommandBus _commandBus; /// /// 依赖注入 /// public CreateGoods(ICommandBus commandBus) => _commandBus = commandBus; /// /// 处理程序 /// /// 库房 /// 条码 /// 负载规格 /// 操作位置 /// 目标位置 /// 优先级 /// 操作者 /// 标签 /// 前序连接 public System.Threading.Tasks.Task Handler( int category, string group, string code, string name) => _commandBus.Execute(new CreateMaterialCommand { Category = category, Group = group, Code = code, Name = name, Unit = "卷" }); } }