新增 WMS 搬运规则与任务管理
支持搬运规则维护、候选预览、任务生成、预占、下发、取消和完成,并完善仓储管理前端交互。
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace MiGu.Server.Wms;
|
||||
|
||||
public interface IWmsDispatchAdapter
|
||||
{
|
||||
Task<DispatchResult> DispatchAsync(DispatchTransportCommand command, CancellationToken ct = default);
|
||||
}
|
||||
|
||||
public sealed record DispatchResult(bool Success, string? MissionId, string? DeliveryId, string? ErrorMessage);
|
||||
|
||||
public sealed class NoopWmsDispatchAdapter : IWmsDispatchAdapter
|
||||
{
|
||||
public Task<DispatchResult> DispatchAsync(DispatchTransportCommand command, CancellationToken ct = default) =>
|
||||
Task.FromResult(new DispatchResult(false, null, null, "调度适配器未配置,任务保留在平台侧"));
|
||||
}
|
||||
Reference in New Issue
Block a user