feat: 新增 AgvPoint 点位表及客户端,支持点位编码与接驳台绑定
This commit is contained in:
@@ -605,6 +605,12 @@ type RespError struct {
|
||||
Message string // WMS 业务错误原文(可选;409 防重等场景透出,空则仅报状态码)
|
||||
}
|
||||
|
||||
// DeliveredOutbound 调 WMS /api/internal/outbound/delivered:AGV 到位(任务结束)后
|
||||
// 把关联出库单从「已出库」置「已送达」(幂等,已作废/已送达的跳过)。调用方 best-effort,失败仅记日志。
|
||||
func (c *Client) DeliveredOutbound(ctx context.Context, outboundNos []string) error {
|
||||
return c.post(ctx, "/api/internal/outbound/delivered", map[string]any{"outboundNos": outboundNos})
|
||||
}
|
||||
|
||||
func (e *RespError) Error() string {
|
||||
if e.Message != "" {
|
||||
return "wms call failed with status " + strconv.Itoa(e.Status) + ": " + e.Message
|
||||
|
||||
Reference in New Issue
Block a user