This commit is contained in:
守护自己的云 2024-08-26 16:46:45 +08:00
parent a8fc9653e0
commit b087fdd0b8

View File

@ -114,13 +114,12 @@ type ShipmentAdd struct {
} }
// Add @TITLE 添加 // 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) xClient, err := client.GetClient(s)
if err != nil { if err != nil {
return return
} }
reply := 0 err = xClient.Call(ctx, "Add", args, &shipmentId)
err = xClient.Call(ctx, "Add", args, &reply)
return return
} }