HANDLER_MAIL
HANDLER_MAIL = 'mail'
处理器:邮件(复用 MailService 场景/模板/通道链路)
队列类型注册表
职责:登记一个可投递的队列——type_code 是开发者调度契约(全站唯一), handler 决定执行器(mail 邮件 / sms 短信 / custom 自定义类), mail/sms 处理器经 scene_key/template_code 绑定模板(界面换绑零代码), payload_schema 声明载荷字段(界面动态表单 + 投递校验 + 敏感掩码三用), queue_name/max_attempts/backoff_seconds/timeout_seconds 为重试策略(全部界面配置)。
$id : int
主键ID
$type_code : string
队列编码,全站唯一,开发者调度用
$name : string
队列名称(界面展示)
$category : string
分类:notice 通知 / business 业务 / custom 自定义
$handler : string
处理器:mail 邮件 / sms 短信 / custom 自定义类
$handler_class : string|null
handler=custom 时的 Job 类名(须继承 App\Jobs\SystemJob)
$scene_key : string|null
handler=mail 时绑定的邮件场景(MailScene 注册表 key)
$template_code : string|null
handler=sms 时绑定的短信模板 code
$payload_schema : array|null
载荷字段声明:{strict, fields:[{name,label,type,required,sensitive}]}
$queue_name : string
队列名(Laravel queue 连接内的逻辑队列)
$max_attempts : int
最大尝试次数
$backoff_seconds : int
失败重试退避秒数
$timeout_seconds : int
单次执行超时秒数
$status : int
状态:1 启用(可投递)、0 停用(拒绝投递)
$is_system : int
内置锁定:1 防误删
$remark : string
备注说明
$create_time : string
创建时间
$update_time : string|null
更新时间
┌────────────────── 分区导航(按此顺序阅读)──────────────────┐ 分区 1 · 常量 本地枚举(启停状态 STATUS_* 已单源 HasStatusConstants) 分区 2 · 表名与属性 $table / $fillable / casts └────────────────────────────────────────────────────────────┘