/internal/communication/push/send
向指定用户的 Web Push 订阅扇出 VAPID 签名的通知(subscription-only,语义同通知服务原内部端点)
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
X-Tenant-ID |
header |
string |
是 | 租户ID |
请求体
Schema: service-communication/internal/handler/dto.InternalPushSendRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
body |
string |
是 | Login from Beijing - Approve? |
||
title |
string |
是 | New Login Attempt |
||
data |
object |
否 | |||
user_id |
string |
否 | user-001 |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 发送完成 | service-communication/internal/handler/dto.PushSendDetailResponse |
| 400 | 请求参数错误 | dto.SimpleResponse |
| 500 | 服务内部错误 | dto.SimpleResponse |
引用的 Schema
dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-communication/internal/handler/dto.PushSendDetailResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
service-communication/internal/handler/dto.PushSendResponse |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-communication/internal/handler/dto.PushSendResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
failed |
integer |
否 | 0 |
||
sent |
integer |
否 | 3 |
||
total |
integer |
否 | 3 |