\App\EventsMessageNotifyEvent

系统通知发送事件

职责:携带一次通知的全部数据(目标/类型/标题/正文/幂等键/是否需记录已读), Listener 统一消费;bizKey 供唯一索引幂等(同事件只发一次); needRead 由触发方表达「这条通知是否要已读跟踪」,监听器按事件落库。

Summary

Methods
Properties
Constants
__construct()
$userIds
$type
$title
$content
$bizKey
$needRead
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$userIds

$userIds : array|int

目标用户 id(单个或多个;worker 告警留空由监听器取超管)

Type

array|int

$type

$type : string

消息类型(SysMessage::TYPE_*)

Type

string

$title

$title : string

标题

Type

string

$content

$content : string

正文(纯文本)

Type

string

$bizKey

$bizKey : ?string

业务幂等键(如 login:{uid}:{指纹} / quota:{uid}:{Ymd};null 不幂等)

Type

?string

$needRead

$needRead : int

是否需记录已读(默认 1 跟踪;0=仅展示,不参与未读/不插已读行)

Type

int

Methods

__construct()

__construct(array|int  $userIds, string  $type, string  $title, string  $content, ?string  $bizKey = null, int  $needRead = SysMessage::NEED_READ_YES) : mixed

Parameters

array|int $userIds
string $type
string $title
string $content
?string $bizKey
int $needRead

Returns

mixed —