Commit 30d986c3 by feixiang

发送消息增加redis key

parent 49b579a1
......@@ -15,7 +15,7 @@ use Swoft\Core\ResultInterface;
/**
* The interface of demo service
*
* @method ResultInterface deferSend(int $storeId, array $sendTypes, array $data, int $sendTime) :bool
* @method ResultInterface deferSend(int $storeId, array $sendTypes, array $data, int $sendTime, string $redisKey) :bool
*/
interface NoticeInterface
{
......@@ -80,7 +80,8 @@ interface NoticeInterface
* @param array $sendTypes
* @param array $data
* @param int $sendTime //发送时间,立即返送填0
* @param string $redisKey //发送事件的redis key(如果定时发送消息,中途需要取消则需要传入此项)
* @return mixed
*/
public function send(array $sendTypes, array $data, int $sendTime) :bool;
public function send(array $sendTypes, array $data, int $sendTime, string $redisKey='') :bool;
}
\ 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