Commit a63f18af by 王召彬

test

parent 054e7373
......@@ -16,6 +16,7 @@ use Swoft\Core\ResultInterface;
* The interface of store service
*
* @method ResultInterface deferIsCertified(int $storeId)
* @method ResultInterface deferGetStore(int $storeId)
*/
interface StoreInterface
{
......@@ -27,5 +28,38 @@ interface StoreInterface
*/
public function isCertified(int $storeId);
/**
* 根据店铺ID获取店铺信息
*
* @param integer $storeId
* @return null|array
*/
public function getStore(int $storeId);
/**
* 根据店铺ID修改店铺信息
*
* @param integer $storeId
* @param array $data
* 参数 $data 字段说明:
* ['storeName'] => 店铺名称
* ['mobile'] => 店铺绑定的手机号
* ['wechat'] => 店铺绑定的微信号
* ['storeAddr'] => 店铺地址
* ['logoUrl'] => 店铺logo图片url
* ['bannerUrl'] => 店铺banner 图片Url
* ['templateId'] => 当前使用的个性模板id
* ['storeIntro'] => 店铺介绍
* ['storeHours'] => 店铺营业时间,示例:"9-22" 表示从9点到22点
* @return int 成功更新的条数
*/
public function updateStore(int $storeId, array $data);
/**
* 根据店铺id删除一个店铺记录
*
* @param integer $storeId
* @return int 成功返回删除条数
*/
public function deleteStore(int $storeId);
}
\ 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