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 添加
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
}