Commit e7dc5a24 by 王召彬

添加创建店员的接口

parent 2c65a4fc
......@@ -18,6 +18,7 @@ use Swoft\Core\ResultInterface;
*
* @method ResultInterface deferGetCraftsmenList(int $storeId, int $subStoreId = 0, int $itemId = 0)
* @method ResultInterface deferGetCraftsmenByUnionId(string $unionId)
* @method ResultInterface deferCreateCraftsmen($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)
......@@ -37,6 +38,26 @@ interface CraftsmanInterface
// wechat 店员微信号
/**
* 创建店员
*
* @param integer $storeId
* @param array $params 所需参数
*array(
* 'name' => '', // 姓名
* 'sex' => '', // 性别
* 'wxNick' => '', // 昵称
* 'headimg' => '', // 头像
* 'items' => '', // 包含的服务项目列表
* 'subStores' => '', // 所属门店列表
* 'motto' => '', // 个性签名
* 'adept' => '', // 个人擅长
* 'wechat' => '', // 微信号
*)
* @return int|bool
*/
public function createCraftsmen($storeId, array $params);
/**
* 获取店员列表
*
* @param integer $storeId
......
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