Commit 981fa588 by 王召彬

添加同步店员所属的商品的接口

parent fc0237cb
......@@ -20,6 +20,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferGetCraftsmenByUnionId(string $unionId)
* @method ResultInterface deferGetCraftsmenById(int $storeId, int $cmanId)
* @method ResultInterface deferGetCraftsmenByIds(int $storeId, array $cmanIds)
* @method ResultInterface deferSyncItems(int $storeId, array $itemIds, int $mode)
*/
interface CraftsmanInterface
{
......@@ -74,4 +75,14 @@ interface CraftsmanInterface
*/
public function getCraftsmenByIds(int $storeId, array $cmanIds);
/**
* 提供给商品服务,用来同步店员所属的商品
*
* @param integer $storeId
* @param array $itemIds
* @param integer $mode 取值:1 表示新增,2 表示去除
* @return boolen
*/
public function syncItems(int $storeId, array $itemIds, int $mode);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment