diff --git a/erp/shipment.go b/erp/shipment.go index a82fcc8..09082ae 100644 --- a/erp/shipment.go +++ b/erp/shipment.go @@ -114,13 +114,12 @@ type ShipmentAdd struct { } // Add @TITLE 添加 -func (s *shipment) Add(ctx context.Context, args ArgsShipmentAdd) (err error) { +func (s *shipment) Add(ctx context.Context, args ArgsShipmentAdd) (shipmentId int64, err error) { xClient, err := client.GetClient(s) if err != nil { return } - reply := 0 - err = xClient.Call(ctx, "Add", args, &reply) + err = xClient.Call(ctx, "Add", args, &shipmentId) return }