Commit 9ff2be0f by 王召彬

添加模板接口

parent c0437d04
......@@ -93,7 +93,7 @@ class Smscode
private function getKey($mobile)
{
return 'smscode-' . md5($this->sellerId . '|' . $mobile);
return 'smscode:' . md5($this->sellerId . '|' . $mobile);
}
}
\ No newline at end of file
<?php
/**
* This file is part of Swoft.
*
* @link https://swoft.org
* @document https://doc.swoft.org
* @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace Hdll\Services\Store\Lib;
use Swoft\Core\ResultInterface;
/**
* The interface of store-template service
*
* @method ResultInterface deferIsCertified(int $storeId)
* @method ResultInterface deferGetStore(int $storeId)
* @method ResultInterface deferUpdateStore(int $storeId, array $data)
* @method ResultInterface deferDeleteStore(int $storeId)
*/
interface TemplateInterface
{
/**
* 获取所有可用的个性模板列表
* onshelf=1表示查询已上架的模板
* onshelf=2表示查询已下架的模板
* @param int $onshelf
* @return array
*/
public function getTemplateList(int $onshelf = 1);
/**
* 根据模板ID获取单个模板信息
*
* @param integer $tplId
* @return array
*/
public function getTemplate(int $tplId);
}
\ 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