Commit ae149c03 by xmy

Merge branch 'comments'

parents f8dc525b 1eab15de
<?php
namespace Hdll\Services\Comments\Enum;
class CommentsEnum
{
const VIRTUAL_COMMENTS = 0; //虚拟评论
const REAL_COMMENTS = 1;//真实评论
const CHILD_COMMENTS = 2;//子评论
const CATEGORY_ACTIVITY_TLP = 1;//活动模版分类
}
\ No newline at end of file
......@@ -5,33 +5,34 @@
* Date: 2018/7/5
* Time: 13:15
*/
namespace Hdll\Services\Notice\Enum;
class NoticeEnum
{
//商家小程序发送
const TYPE_MINI_BACKEND_SEND= 100;
//腾讯sms发送
const TYPE_TENCENT_SMS = 150;
//买家小程序消息推送
const TYPE_MINI_FRONTEND_SEND= 101;
const TYPE_MP_SEND= 102;
//商家小程序发送
const TYPE_MINI_BACKEND_SEND = 100;
const SEND_TYPES = [
self::TYPE_MINI_BACKEND_SEND,
self::TYPE_TENCENT_SMS,
self::TYPE_MINI_FRONTEND_SEND,
self::TYPE_MP_SEND,
];
//腾讯sms发送
const TYPE_TENCENT_SMS = 150;
//买家小程序消息推送
const TYPE_MINI_FRONTEND_SEND = 101;
//公众号发送
const TYPE_MP_SEND = 102;
//系统消息发送
const TYPE_SYSTEM_SEND = 103;
const SEND_TYPES = [
self::TYPE_MINI_BACKEND_SEND,
self::TYPE_TENCENT_SMS,
self::TYPE_MINI_FRONTEND_SEND,
self::TYPE_MP_SEND,
self::TYPE_SYSTEM_SEND,
];
}
\ No newline at end of file
......@@ -80,6 +80,18 @@ interface NoticeInterface
]
];
*
* 系统发送消息数据结构
$data[NoticeEnum::TYPE_SYSTEM_SEND] = [
NoticeEnum::TYPE_SYSTEM_SEND=>[
'storeId' => 198
"userId" => "1", //用户id
"content" => "内容",
"page" => "", //页面地址
"isUpdate"=> bool ,//是否更新 根据page storeId userId更新未读消息内容
]
];
*
*
* @param array $sendTypes
* @param array $data
* @param $sendTime //如果需要多个时间段发送则填写时间戳数组例如:[15800000,1580000]
......
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