Commit 056fc948 by feixiang

发送消息增加redis key

parent 40138cfc
...@@ -16,6 +16,7 @@ use Swoft\Core\ResultInterface; ...@@ -16,6 +16,7 @@ use Swoft\Core\ResultInterface;
* The interface of demo service * The interface of demo service
* *
* @method ResultInterface deferSend(int $storeId, array $sendTypes, array $data, int $sendTime, string $redisKey) :bool * @method ResultInterface deferSend(int $storeId, array $sendTypes, array $data, int $sendTime, string $redisKey) :bool
* @method ResultInterface deferCancelSend(int $storeId, array $sendTypes, array $data, int $sendTime, string $redisKey) :bool
*/ */
interface NoticeInterface interface NoticeInterface
{ {
...@@ -84,4 +85,13 @@ interface NoticeInterface ...@@ -84,4 +85,13 @@ interface NoticeInterface
* @return mixed * @return mixed
*/ */
public function send(array $sendTypes, array $data, int $sendTime, string $redisKey='') :bool; public function send(array $sendTypes, array $data, int $sendTime, string $redisKey='') :bool;
/**
* 取消定时消息发送
*
* @param string $redisKey
* @return bool
*/
public function cancelSend(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