TYPE_ANNOUNCEMENT
TYPE_ANNOUNCEMENT = 'announcement'
类型:公告
系统通知(公告与系统事件统一模型)
职责:公告(管理员发布)与系统事件(密码重置/登录提醒/配额/worker 告警) 的统一载体;target 五维定向 + need_read 开关 + biz_key 防重。
$id : int
通知 id
$msg_type : string
类型(announcement/security/account/quota/worker)
$title : string
标题
$content : string
正文(纯文本)
$target_type : string
定向(all/dept/post/role/user)
$target_ids : array
目标 id 数组
$need_read : int
已读跟踪开关(1=跟踪/0=仅展示)
$sender_id : int
发布人 id(系统事件=0)
$status : int
状态(0 草稿/1 已发布/2 已撤回)
$target_count : int
发布时目标人数快照
$publish_time : string|null
发布时间
$expire_time : string|null
有效期
$biz_key : string|null
业务幂等键
$create_time : string
创建时间
$update_time : string
更新时间
┌────────────────── 分区导航(按此顺序阅读)──────────────────┐ 分区 1 · 常量 类型/定向/状态/开关标记 分区 2 · 表名与属性 $table / $fillable / casts └────────────────────────────────────────────────────────────┘