POST /internal/notification/push/send

向指定用户的设备发送 VAPID 签名的 Web Push 通知消息(内部API,投递由 communication-service 执行) 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。

通知服务 - 内部接口 None application/json

请求参数

名称位置类型必填默认值示例约束描述
X-Tenant-ID header string 是 租户ID

请求体

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

字段类型必填示例约束描述
body string 是 Login from Beijing - Approve?
title string 是 New Login Attempt
data object 否
user_id string 否 user-001

响应

引用的 Schema

service-core/base/dto.SimpleResponse

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

service-notification/internal/handler/dto.PushSendDetailResponse

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

service-notification/internal/handler/dto.PushSendResponse

字段类型必填示例约束描述
failed integer 否 0
sent integer 否 3
total integer 否 3