37 lines
1.6 KiB
PHP
37 lines
1.6 KiB
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
namespace App\Amqp\Producer;
|
||
|
||
use Hyperf\Amqp\Annotation\Producer;
|
||
use Hyperf\Amqp\Message\ProducerMessage;
|
||
|
||
#[Producer(exchange: 'amqp.direct', routingKey: 'SendStationMessage')]
|
||
class SendStationMessageProducer extends ProducerMessage
|
||
{
|
||
/**
|
||
* @param $data
|
||
* [
|
||
* "user_id":"用户id(接受者)",
|
||
* "user_type":"用户类型(接受者)",
|
||
* "notice_type":"消息类型(1:医生服务通知 2:医生系统公告 3:患者系统消息)",
|
||
* "notice_system_type":"系统消息类型(患者端系统消息存在 1:服务消息 2:福利消息 3:退款消息 4:物流消息)",
|
||
* "inquiry_type:"问诊类型(医生端服务通知存在 1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)",
|
||
* "from_name:"发送人姓名",
|
||
* "notice_brief_type:"缩略消息标题(列表页展示)",
|
||
* "notice_title:"消息标题",
|
||
* "notice_content:"内容",
|
||
* "button_type:"按钮类型(1:我的账户 2:联系客服 3:查看协议 4:订单详情 5:查看处方 )",
|
||
* "link_type:"跳转页面类型(1:聊天详情页 2:问诊结束列表页 3:问诊消息列表页 4:我的名片 5:我的简介 6:我的账户 7:我的福利 8:药品订单详情页 9:物流详情 10:问诊订单详情 11:联系客服 12:协议详情 13:处方详情)",
|
||
* "link_params:"跳转参数(json)",
|
||
* "show_type:"展示类型(1:医生数据)",
|
||
* "show_params:"展示数据(json)",
|
||
* ]
|
||
*/
|
||
public function __construct($data)
|
||
{
|
||
$this->payload = $data;
|
||
}
|
||
}
|