You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
682 B

  1. <?php
  2. namespace App\Service\v3\Interfaces;
  3. interface GoodsInventoryServiceInterface
  4. {
  5. /**
  6. * 压已售库存(冻结的)
  7. * @param $activityType
  8. * @param $goodsId
  9. * @param $num
  10. * @return mixed
  11. */
  12. public function doSold($activityType, $goodsId, $num);
  13. /**
  14. * 释已售库存(冻结的)
  15. * @param $activityType
  16. * @param $goodsId
  17. * @param $num
  18. * @return mixed
  19. */
  20. public function undoSold($activityType, $goodsId, $num);
  21. /**
  22. * 获取当前商品冻结库存
  23. * @param $activityType
  24. * @param $goodsId
  25. * @return mixed
  26. */
  27. public function getSold($activityType, $goodsId);
  28. }