POST /admin/notifications/broadcast

向租户下所有用户或指定用户群发送通知消息,适用于系统维护通知、安全告警等场景 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。

通知服务 `bearerAuth` application/json

请求体

Schema: service-notification/internal/handler/dto.BroadcastNotificationRequest

字段类型必填示例约束描述
content string 是 系统将于今晚22:00-23:00进行维护 内容
title string 是 系统公告 标题
type string 否 system 类型

响应

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-notification/internal/handler/dto.BroadcastNotificationDetailResponse

字段类型必填示例约束描述
code integer 否
data service-notification/internal/handler/dto.BroadcastNotificationResponse 否
message string 否

service-notification/internal/handler/dto.BroadcastNotificationResponse

广播通知的响应结果

字段类型必填示例约束描述
broadcast_id string 否 broadcast-1234567890 广播ID
content string 否 系统将于今晚22:00-23:00进行维护 内容
recipients integer 否 100 接收人数
title string 否 系统公告 标题
type string 否 system 类型