Commit f182ca3a by 王召彬

Merge branch 'feature-multiCraftsman'

parents 7c98ac07 0c45ef88
......@@ -17,11 +17,12 @@ use Swoft\Core\ResultInterface;
* The interface of craftsman service
*
* @method ResultInterface deferGetCraftsmenList(int $storeId, int $subStoreId = 0, int $itemId = 0)
* @method ResultInterface deferGetCraftsmenByUnionId(string $unionId)
* @method ResultInterface deferGetCraftsmenByUnionId(string $unionId, int $isSeller=0)
* @method ResultInterface defercreateCraftsman($storeId, array $params)
* @method ResultInterface deferGetCraftsmenById(int $storeId, int $cmanId)
* @method ResultInterface deferGetCraftsmenByIds(int $storeId, array $cmanIds)
* @method ResultInterface deferSyncItems(int $storeId, array $itemIds, int $mode)
* @method ResultInterface deferUpdateCmanByUnionId(string $unionId, int $storeId, array $data)
*/
interface CraftsmanInterface
{
......@@ -72,9 +73,10 @@ interface CraftsmanInterface
* 根据unionId获取店员信息
*
* @param string $unionId
* @param int $isSeller 是否店主 1-是 ,0-否
* @return array
*/
public function getCraftsmenByUnionId(string $unionId);
public function getCraftsmenByUnionId(string $unionId, int $isSeller =0);
/**
......@@ -106,4 +108,14 @@ interface CraftsmanInterface
*/
public function syncItems(int $storeId, array $itemIds, int $mode);
/**
* 根据unionId修改在指定店铺的店员信息
*
* @param string $unionId
* @param integer $storeId
* @param array $data
* @return mixed
*/
public function updateCmanByUnionId(string $unionId, int $storeId, array $data);
}
\ 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