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.
33 lines
682 B
33 lines
682 B
<?php
|
|
|
|
namespace App\Service\v3\Interfaces;
|
|
|
|
interface GoodsInventoryServiceInterface
|
|
{
|
|
/**
|
|
* 压已售库存(冻结的)
|
|
* @param $activityType
|
|
* @param $goodsId
|
|
* @param $num
|
|
* @return mixed
|
|
*/
|
|
public function doSold($activityType, $goodsId, $num);
|
|
|
|
/**
|
|
* 释已售库存(冻结的)
|
|
* @param $activityType
|
|
* @param $goodsId
|
|
* @param $num
|
|
* @return mixed
|
|
*/
|
|
public function undoSold($activityType, $goodsId, $num);
|
|
|
|
/**
|
|
* 获取当前商品冻结库存
|
|
* @param $activityType
|
|
* @param $goodsId
|
|
* @return mixed
|
|
*/
|
|
public function getSold($activityType, $goodsId);
|
|
|
|
}
|